Tutor Magic in IPython

This notebook demonstrates the %%tutor magic as used in IPython notebook.

First, you'll need the following installed:

  1. IPython/Jupyter
  2. Metakernel

Next, you'll need to use the magics in IPython:

In [1]:
from metakernel import register_ipython_magics
register_ipython_magics()

Finally, put a %%tutor at the top of any cell with Python code, and watch the visualization:

In [2]:
%%tutor

mylist = []

for i in range(10):
    mylist.append(i ** 2)

Try it out!