Nbtutor
Visualize Python code execution (line-by-line) in Jupyter Notebook cells. Inspired by Online Python Tutor.
Usage
Install
Note: installing directly off this repo won't work, as we don't ship the built JavaScript and CSS assets. See more about developing below.
pip
pip install nbtutor
jupyter nbextension install --overwrite --py nbtutor
jupyter nbextension enable --py nbtutor
conda
conda install -c conda-forge nbtutor
Usage (Jupyter Notebook)
First load the nbtutor IPython kernel extension at top of the Notebook by executing the following magic in a CodeCell:
%load_ext nbtutor
Then to visualize the execute of code in a CodeCell add the following magic to the top of the CodeCell and execute it again:
%%nbtutor
Optional arguments
T