ó
    Ñ]j­	  ã                   ó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      ÚZ/home/mande/repo/quber/.venv/lib/python3.13/site-packages/IPython/core/magics/extension.pyÚload_extÚExtensionMagics.load_ext   sj   € ö ÜÐ3Ó4Ð4Ø�j‰j×*Ñ*×9Ñ9¸*ÓEˆàÐ"Ó"ÜÐJÈZÑ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)z—Unload 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à�j‰j×*Ñ*×;Ñ;¸JÓGˆàÐ&Ó&ÜÐEÈ
ÑRÕSØ�LÓ ÜÐ3°jÑ@Õ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Ñ5°jÕ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   