I just found myself in a pinch. I needed to get one of my ipython notebooks to someone quickly and I heard that there was a way to convert the .ipynb into something else (like a .py).
So I googled it: convert ipython notebook
What I found was this link for nbconvert. It's so sweet! It converts ipython notebooks into several output formats such as html, latex, slides, markdown, rst and python. It's as simple as
ipython nbconvert notebook.ipynb
which converts notebook.ipynb to notebook.html. Or you can do
ipython nbconvert --to python notebook.ipynb
to convert the file to notebook.py.
Super cool!
No comments:
Post a Comment