| Server IP : 35.80.110.71 / Your IP : 216.73.216.221 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/IPython/utils/__pycache__/ |
Upload File : |
�
}�e � � � d Z d� Zy)z:
A simple utility to import something by its string name.
c �� � | j dd� }t |� dk( r"|\ }}t ||g�� } t ||� }|S t |d � S # t $ r}t d|z � |�d}~ww xY w)a� Import and return ``bar`` given the string ``foo.bar``.
Calling ``bar = import_item("foo.bar")`` is the functional equivalent of
executing the code ``from foo import bar``.
Parameters
----------
name : string
The fully qualified name of the module/package being imported.
Returns
-------
mod : module object
The module that was imported.
�.� � )�fromlistzNo module named %sN� )�rsplit�len�
__import__�getattr�AttributeError�ImportError)�name�parts�package�obj�module�pak�es �</usr/lib/python3/dist-packages/IPython/utils/importstring.py�import_itemr
s� � �"