
    rh                        S r SSKJr  / SQrSSKJr  SSKJr  SSKJr  SSKJ	r	  SSK
Jr  S	 r\R                  " 5       (       a   SS
KJr  \" S\5      r\R#                  5         gg)aJ  
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)
    )annotations)
convertersipExtensionobjectsloadNoMagicload_ipython_extension)common)r   )r   )r   )r   c                     [         R                  " 5       (       a8  SSKJn   U R	                  5       (       a  U R                  5       n[        U5        ggg)zs
Load the magic functions of load_ipython_extension when running IPython
without needing to call a %magic function
r   )InteractiveShellN)r	   runningInNotebookIPython.core.interactiveshellr   initializedinstancer   )r   localIPs     T/home/james-whalen/.local/lib/python3.13/site-packages/music21/ipython21/__init__.pyr   r   "   sE    
 !!B''))&//1G"7+ * "    )Timer   N)__doc__
__future__r   __all__music21r	   music21.ipython21r   r   r   music21.ipython21.ipExtensionr   r   r   	threadingr   tstart r   r   <module>r      sZ   
 #4  ( ) % @
, 
aAGGI r   