Jupyter Notebook/IPython Hints and Tips

IPython has a number of magic commands which can control how the interpreter works. Link

Common magic I've seen are


In [1]:
%matplotlib inline

Which sets up the interpreter to display matplotlib plots inline in the interpreter. I think. The docs are sort of nebululous.

The %notebook command says to export the history of the notebook. I'm putting it at the end here so that I always get something exported so I can check it into git. If you are working interactively in a Jupyter environment you don't really need it I think. I think it is more for IPyton from the command line.

%notebook hints.ipynb


In [3]:


In [ ]: