IPython/Jupyter extension to music21. In Jupyter Notebook call:

%load_ext music21.ipython21

and show will take place inside the browser.

Since at least music21 v5, however, when music21 is imported we set a timer for two seconds to everything to settle and then load our extension (which now just calls matplotlib inline)



Load the magic functions of load_ipython_extension when running IPython without needing to call a %magic function