Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to share Ipython notebook kernels?

I have some very large IPython (1.0) notebooks, which I find very unhandy to work with. I want to split the large notebook into several smaller ones, each covering a specific part of my analysis. However, the notebooks need to share data and (unpickleable) objects. Now, I want these notebooks to connect to the same kernel. How do I do this? How can I change the kernel to which a notebook is connected? (And any ideas how to automate this step?)

I don't want to use the parallel computing mechanism (which would be a trivial solution), because it would add much code overhead in my case.

like image 250
Moritz Avatar asked Sep 18 '13 21:09

Moritz


People also ask

How do I share my IPython notebook?

Sharing Locally You can export to a variety of formats from within the notebook by navigating to File -> Download As. You'll want to export your notebook as a Jupyter Interactive Notebook ( . ipynb file format) if you'd like the person you're sharing it with to interact with the notebook.


1 Answers

When I have a long noetbook, I create functions from my code, and hide it into python modules, which I then import in the notebook. So that I can have huge chunk of code hidden on the background, and my notebook smaller for handier manipulation.

like image 138
Romain Jouin Avatar answered Oct 29 '22 19:10

Romain Jouin