For our new project we are trying to use Python 3, so I want to evaluate IPython on the latest version of Python, which currently is 3.4.3. I am using pyenv and pyvirtualenv to manage my python installs. So with those all set up, I installed python 3.4.3 and created a virtualenv to use for ipython.
I haven’t used IPython before - or should I say Jupyter since that is the project’s new name. So I watched a couple of the introductory videos I found on YouTube. This video told me I needed to add the python 3 kernel to jupyter, so I tried to do that but kept getting messages about missing pieces every time I tried to run ipython.
What I had overlooked was an install target that would install not only ipython but all the things it typically depends on / uses. Once I installed ‘all’ I got a usable ipython.
Exporting from IPython to other formats
One of the things we are most interested in for work is the export
formats that IPython / Jupyter supports so I tried out all the export
formats. The PDF renderer was looking for pandoc. According to the
pandoc install instructions,
before I can install pandoc, I need a version of LaTeX for the
Mac. So, I installed MacTeX from their
MacTeX.pkg. And then I installed pandoc with homebrew:
pandoc. I still can’t export PDFs from the drop down menu in the
iPython web interface:
However, from the command line, I can convert my test document to latex:
produces the file CNKTest.tex which I can open and view in Latexit (which came from MacTeX).
Some of the things I am playing aroud with want matplotlib - which
does not appear to be installed in my virtualenv. So I ran
install matplotlib which says it did:
And now I can load matplotlib inside a running ipython session with
%matplotlib (or I could load it when I start the session using
the command line argument: