Matlab notebooks

using iPython notebooks

Posted by Gabriel Peyré on November 1, 2014

Thanks to Steven Silvester, most of the Matlab tours are now available as iPython notebooks. This means that:

  • The corresponding tours are now directly rendered online using nbviewer, which means that HTML conversion is not anymore needed.
  • The user can now download the corresponding .ipynb file and run it locally, possibly modifying and completing its content.

This requires that you install Python and iPython (I recommend for instance the Anaconda distribution). You also need to install the pymatbridge Python module in order to run Matlab code from the notebook.

The command

%load_ext pymatbridge

will start Matlab in the background, and then you simply need to put the keyword


if you want to add a new cell to the notebook with your own Matlab code.