
    rh%                    8    S SK Jr  S SKJr  SrS rS rS rS rg)	    )annotations)commonTc                v     SSK Jn  UR                  5         U R                  SS5        g! [         a     gf = f)z
Load any necessary notebook extensions.  Currently just
sets matplotlib to interactive mode.

Formerly set image/png to display properly, but we now use the default
display(Image(data)) in Jupyter.
r   )pyplotconfigz&InlineBackend.figure_format = 'retina'N)
matplotlibr   ionrun_line_magicImportError)ipplts     W/home/james-whalen/.local/lib/python3.13/site-packages/music21/ipython21/ipExtension.pyload_ipython_extensionr   
   s6    $,	
($LM s   (+ 
88c                     [         R                  " 5       (       d  g [        5       R                  R                  S:H  $ ! [
         a     gf = f)NFzgoogle.colab._shell)r   runningInNotebookget_ipython	__class__
__module__	NameError     r   inGoogleColabNotebookr   %   sG    ##%% }&&115JJJ s    > 
A
Ac                 d     SS K n U R                  R                  $ ! [        [        4 a     gf = f)Nr   )r   r   r   )notebook_versionversion_infor   AttributeError)r   s    r   notebookVersionr   0   s3      ---( s    //c                 >    [        5       =(       d    [        5       S:  $ )N)   r   r   )r   r   r   r   r   needsToLoadRequireJSr!   8   s     "Do&79&DDr   N)	
__future__r   music21r   _DOC_IGNORE_MODULE_OR_PACKAGEr   r   r   r!   r   r   r   <module>r%      s&    "  $ 6	Er   