This post is written as an IPython Notebook page, you can continue reading below or open it inside nbviewer.
Tag: ipython
Environment: Ubuntu 13.04, Python 3.3
This should work for ipython starting from version 1.0 (otherwise nbconvert can be installed separately):
1 |
$ipython nbconvert --to latex --post PDF my_notebook.ipynb |
my_notebook.pdf will be created
Installation of some additional packages and libraries may be required:
1 |
$sudo apt-get install pandoc texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended |
1 |
$pip install pygments sphinx |
More about nbconvert formats and options at: http://ipython.org/ipython-doc/rel-1.0.0/interactive/nbconvert.html