
    ^h	                     H    S r SSKJr  SSKJrJrJr  \ " S S\5      5       rg)z?Implementation of magic functions for the extension machinery.
    )
UsageError)Magicsmagics_class
line_magicc                   H    \ rS rSrSr\S 5       r\S 5       r\S 5       rSr	g)ExtensionMagics   z/Magics to manage the IPython extensions system.c                     U(       d  [        S5      eU R                  R                  R                  U5      nUS:X  a  [	        SU-  5        [	        SU5        gUS:X  a  [	        SU-  5        gg)z-Load an IPython extension by its module name.Missing module name.zalready loadedz6The %s extension is already loaded. To reload it, use:z  %reload_extzno load functionz*The %s module is not an IPython extension.N)r   shellextension_managerload_extensionprintself
module_strress      W/home/james-whalen/.local/lib/python3.13/site-packages/IPython/core/magics/extension.pyload_extExtensionMagics.load_ext   sj     344jj**99*E""JZWX/:.&&>KL '    c                     U(       d  [        S5      eU R                  R                  R                  U5      nUS:X  a  [	        SU-  5        gUS:X  a  [	        SU-  5        gg)zUnload an IPython extension by its module name.

Not all extensions can be unloaded, only those which define an
``unload_ipython_extension`` function.
r   zno unload functionz1The %s extension doesn't define how to unload it.z
not loadedzThe %s extension is not loaded.N)r   r   r   unload_extensionr   r   s      r   
unload_extExtensionMagics.unload_ext)   s_     344jj**;;JG&&E
RSL 3j@A !r   c                 r    U(       d  [        S5      eU R                  R                  R                  U5        g)z/Reload an IPython extension by its module name.r   N)r   r   r   reload_extension)r   r   s     r   
reload_extExtensionMagics.reload_ext:   s+     344

$$55jAr    N)
__name__
__module____qualname____firstlineno____doc__r   r   r   r   __static_attributes__r    r   r   r   r      sE    9
M 
M B B  B Br   r   N)r%   IPython.core.errorr   IPython.core.magicr   r   r   r   r    r   r   <module>r)      s3     * ? ? &Bf &B &Br   