Possibly interesting: https://github.com/gregsexton/ob-ipython