Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/IPython/__pycache__/__init__.cpython-39.pyc
Ðазад
a o�h� � @ s� d Z ddlZejdk red��ddlmZ ddlmZ ddlm Z dd l mZ dd lm Z ddlmZ ddlmZ g d �Zdejejf ZejZejZejZddhZddd�Zddd�Zddd�ZdS )zW IPython: tools for interactive and parallel computing in Python. https://ipython.org � N)� � a IPython 8.13+ supports Python 3.9 and above, following NEP 29. IPython 8.0-8.12 supports Python 3.8 and above, following NEP 29. When using Python 2.7, please install IPython 5.x LTS Long Term Support version. Python 3.3 and 3.4 were supported up to IPython 6.x. Python 3.5 was supported with IPython 7.0 to 7.9. Python 3.6 was supported with IPython up to 7.16. Python 3.7 was still supported with the 7.x branch. See IPython `README.rst` file for more information: https://github.com/ipython/ipython/blob/main/README.rst � )�get_ipython)�release)�Application)�embed)�InteractiveShell)�sys_info)�extract_module_locals)� start_ipythonr �start_kernel�embed_kernelz%s <%s>zCVE-2022-21699zCVE-2023-24816c K sH t d�\}}| du r|} |du r$|}ddlm} |f | |d�|�� dS )av Embed and start an IPython kernel in a given scope. If you don't want the kernel to initialize the namespace from the scope of the surrounding function, and/or you want to load full IPython configuration, you probably want `IPython.start_kernel()` instead. Parameters ---------- module : types.ModuleType, optional The module to load into IPython globals (default: caller) local_ns : dict, optional The namespace to load into IPython user namespace (default: caller) **kwargs : various, optional Further keyword args are relayed to the IPKernelApp constructor, such as `config`, a traitlets :class:`Config` object (see :ref:`configure_start_ipython`), allowing configuration of the kernel (see :ref:`kernel_options`). Will only have an effect on the first embed_kernel call for a given process. r Nr )r )�module�local_ns)r Zipykernel.embedr )r r �kwargsZ caller_moduleZ caller_localsZreal_embed_kernel� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/IPython/__init__.pyr H s r c K s ddl m} |f d| i|��S )aI Launch a normal IPython instance (as opposed to embedded) `IPython.embed()` puts a shell in a particular calling scope, such as a function or method for debugging purposes, which is often not desirable. `start_ipython()` does full, regular IPython initialization, including loading startup files, configuration, etc. much of which is skipped by `embed()`. This is a public API method, and will survive implementation changes. Parameters ---------- argv : list or None, optional If unspecified or None, IPython will parse command-line options from sys.argv. To prevent any command-line parsing, pass an empty list: `argv=[]`. user_ns : dict, optional specify this dictionary to initialize the IPython user namespace with particular values. **kwargs : various, optional Any other kwargs will be passed to the Application constructor, such as `config`, a traitlets :class:`Config` object (see :ref:`configure_start_ipython`), allowing configuration of the instance (see :ref:`terminal_options`). r ��launch_new_instance�argv)ZIPython.terminal.ipappr )r r r r r r r g s r c K s6 ddl }|jdtdd� ddlm} |f d| i|��S )a Launch a normal IPython kernel instance (as opposed to embedded) `IPython.embed_kernel()` puts a shell in a particular calling scope, such as a function or method for debugging purposes, which is often not desirable. `start_kernel()` does full, regular IPython initialization, including loading startup files, configuration, etc. much of which is skipped by `embed_kernel()`. Parameters ---------- argv : list or None, optional If unspecified or None, IPython will parse command-line options from sys.argv. To prevent any command-line parsing, pass an empty list: `argv=[]`. user_ns : dict, optional specify this dictionary to initialize the IPython user namespace with particular values. **kwargs : various, optional Any other kwargs will be passed to the Application constructor, such as `config`, a traitlets :class:`Config` object (see :ref:`configure_start_ipython`), allowing configuration of the kernel (see :ref:`kernel_options`). r Nz`start_kernel is deprecated since IPython 8.0, use from `ipykernel.kernelapp.launch_new_instance`� )� stacklevelr r )�warnings�warn�DeprecationWarningZipykernel.kernelappr )r r r r r r r r � s �r )NN)N)N)�__doc__�sys�version_info�ImportErrorZcore.getipythonr �corer Zcore.applicationr Zterminal.embedr Zcore.interactiveshellr Z utils.sysinfor Zutils.framer �__all__�author�author_email� __author__�license�__license__�version�__version__Z__patched_cves__r r r r r r r �<module> s* �
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка