
    MhH                        d Z ddlZddlZej        dk     r ed          ddlmZ ddlmZ ddl	m
Z
 dd	lmZ dd
lmZ ddlmZ ddlmZ g dZej        dej        dZej        Zej        Zej        ZddhZddZddZdS )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 <>zCVE-2022-21699zCVE-2023-24816c                     t          j        dt          d           t          d          \  }}| |} |t	          d	i |}ddlm}  |d	| |d| dS )
aG  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.

    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   )
stacklevelr   Nr   )r   )modulelocal_ns )warningswarnDeprecationWarningr   dictipykernel.embedr   )r   r   kwargscaller_modulecaller_localsreal_embed_kernels         P/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/IPython/__init__.pyr   r   K   s    4 M	@	    &;1%=%="]M~((-(( BAAAAAAVhAA&AAAAA    c                 "    ddl m}  |d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argvr   )IPython.terminal.ipappr"   )r#   r   r"   s      r   r   r   v   s2    2 ;:::::33D3F333r    )NN)N)__doc__sysr   version_infoImportErrorcore.getipythonr   corer   core.applicationr   terminal.embedr	   core.interactiveshellr
   utils.sysinfor   utils.framer   __all__authorauthor_email
__author__license__license__version__version____patched_cves__r   r   r   r    r   <module>r9      sM   ( 


  g
+	  . ) ( ( ( ( (       ) ) ) ) ) ) ! ! ! ! ! ! 3 3 3 3 3 3 # # # # # # . . . . . .
4
4
4 "...'*>*>*>?
# %&67 )B )B )B )BV4 4 4 4 4 4r    