Jupyter at Bryn Mawr College |
|||
Public notebooks: /services/public/dblank / Examples |
This notebook demonstrates the %%tutor magic as used in IPython notebook.
First, you'll need the following installed:
Next, you'll need to use the magics in IPython:
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:
%%tutor
mylist = []
for i in range(10):
mylist.append(i ** 2)
Try it out!