| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/IPython/core/magics/__pycache__/ |
Upload File : |
�
�@�c� � �V � d Z ddlmZ ddlmZmZmZ e G d� de� � � � ZdS )z?Implementation of magic functions for the extension machinery.
� )�
UsageError)�Magics�magics_class�
line_magicc �T � e Zd ZdZed� � � Zed� � � Zed� � � ZdS )�ExtensionMagicsz/Magics to manage the IPython extensions system.c �� � |st d� � �| j j � |� � }|dk r$t d|z � � t d|� � dS |dk rt d|z � � dS dS )z-Load an IPython extension by its module name.�Missing module name.zalready loadedz6The %s extension is already loaded. To reload it, use:z
%reload_extzno load functionz*The %s module is not an IPython extension.N)r �shell�extension_manager�load_extension�print��self�
module_str�ress �?/usr/lib/python3/dist-packages/IPython/core/magics/extension.py�load_extzExtensionMagics.load_ext s� � � � 5��3�4�4�4��j�*�9�9�*�E�E���"�"�"��J�Z�W�X�X�X��/�:�.�.�.�.�.�
�&�
&�
&��>��K�L�L�L�L�L� '�
&� c �� � |st d� � �| j j � |� � }|dk rt d|z � � dS |dk rt d|z � � dS dS )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
zno unload functionz1The %s extension doesn't define how to unload it.z
not loadedzThe %s extension is not loaded.N)r r r �unload_extensionr r s r �
unload_extzExtensionMagics.unload_ext) s� � � � 5��3�4�4�4��j�*�;�;�J�G�G���&�&�&��E�
�R�S�S�S�S�S�
�L�
�
��3�j�@�A�A�A�A�A� !�
r c �f � |st d� � �| j j � |� � dS )z/Reload an IPython extension by its module name.r
N)r r r �reload_extension)r r s r �
reload_extzExtensionMagics.reload_ext: s: � � � 5��3�4�4�4��
�$�5�5�j�A�A�A�A�Ar N)�__name__�
__module__�__qualname__�__doc__r r r r � r r r r st � � � � � �9�9��
M�
M� �Z�
M� �B� B� �Z�B� �B� B� �Z�B� B� Br r N)r �IPython.core.errorr �IPython.core.magicr r r r r r r �<module>r# s� ��� � *� )� )� )� )� )� ?� ?� ?� ?� ?� ?� ?� ?� ?� ?� �&B� &B� &B� &B� &B�f� &B� &B� ��&B� &B� &Br