
    3j                    2    d dl mZ d dlmZ dZd Zd Zd Zy)    )annotations)commonTc                t    	 ddl m} |j                          | j                  dd       y# t        $ r Y yw xY w)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     J/DATA/.local/lib/python3.12/site-packages/music21/ipython21/ipExtension.pyload_ipython_extensionr   	   s6    $,	
($LM s   (+ 	77c                     t        j                         sy	 t               j                  j                  dk(  S # t
        $ r Y yw xY w)NFzgoogle.colab._shell)r   runningInNotebookget_ipython	__class__
__module__	NameError     r   inGoogleColabNotebookr   $   sD    ##% }&&115JJJ s    8 	AAc                 b    	 dd l } | j                  j                  S # t        t        f$ r Y yw xY w)Nr   )r   r   r   )notebook_versionversion_infor   AttributeError)r   s    r   notebookVersionr   /   s3      ---( s    ..N)
__future__r   music21r   _DOC_IGNORE_MODULE_OR_PACKAGEr   r   r   r   r   r   <module>r"      s     "  $ 6	r   