wL iH:dZddlZddlZejdkredddlmZddlmZddl m Z dd l m Z dd l mZdd lmZdd lmZgd Zej(dej*dZej.Zej2ZejZddhZddZddZy)zW IPython: tools for interactive and parallel computing in Python. https://ipython.org N) a IPython 8.31+ supports Python 3.11 and above, following SPEC0 IPython 8.19+ supports Python 3.10 and above, following SPEC0. 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 embed_kernelz <>zCVE-2022-21699zCVE-2023-24816c tjdtdtd\}}||}| t d i|}ddlm}|d ||d|y) aGEmbed 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. This is a deprecated alias for `ipykernel.embed.embed_kernel()`, to be removed in the future. You should import directly from `ipykernel.embed`; this wrapper fails anyway if you don't have `ipykernel` package installed. 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. Will only have an effect on the first embed_kernel call for a given process. ztimport embed_kernel from ipykernel.embed directly (since 2013). Importing from IPython will be removed in the future) stacklevelrNr)r)modulelocal_ns)warningswarnDeprecationWarningr dictipykernel.embedr)rrkwargs caller_module caller_localsreal_embed_kernels V/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/IPython/__init__.pyrrKsb4 MM @ &;1%="]M ~(-(BAVhA&Ac "ddlm}|dd|i|S)aILaunch 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_instanceargvr)IPython.terminal.ipappr")r#rr"s rr r vs2;  3D 3F 33r )NN)N)__doc__sysr version_info ImportErrorcore.getipythonrcorercore.applicationrterminal.embedr core.interactiveshellr utils.sysinfor utils.framer __all__author author_email __author__license __license__version __version____patched_cves__rr rr rr9s( g   .))!3#. 4"..'*>*> ?   ## %&67)BV4r