notebook 

Send to Kindle
home » snippets » python » ipython » notebook



Installing

# Install requirements
sudo python -m pip.__init__ install pyzmq
sudo python -m pip.__init__ install tornado

# Install the MathJax lib.
# Otherwise, IPython will load it from a CDN.
# See instructions at: http://ipython.org/ipython-doc/dev/install/install.html#mathjax
sudo python -c '
from IPython.external.mathjax import install_mathjax
install_mathjax()
'

# Install optional requirements.
sudo python -m pip.__init__ install numpy
sudo python -m pip.__init__ install matplotlib  # requires numpy

# Now launch away.
ipython notebook

# Or, in my case,
/opt/local/Library/Frameworks/Python.framework/Versions/2.7//bin/ipython notebook --pylab=inline

# This opens your browser to, typically
# http://127.0.0.1:8888/ which is the notebook.