ropolo
ropolo

Reputation: 127

Exporting interactive jupyter/ipython3 session to Jupyter notebook

Hello Stack Overflow community,

I like to work on the jupyter console on the terminal very much. I am interested in exporting my history to a Jupyter notebook (*.ipynb) file to share with colleagues. How can I do this?

Thank you very much for your time

Upvotes: 1

Views: 159

Answers (1)

gdahlm
gdahlm

Reputation: 1202

The built-in magic command %notebook is used for this even in the console/qtconsole clients.

%notebook /tmp/foo.ipynb

You may need to add -e or --export on older versions but check the docstring on your version with %notebook?

Upvotes: 2

Related Questions