ó
æNXc           @@  s€  d  Z  d d l m Z d d l Z d d l Z e j Z e d  d k  sg e d d k rv e d  d k  rv e d ƒ ‚ n  [ e j j	 e j j
 e j j 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 d	 d l m Z d e j e j f Z e j  Z! e j" Z# e j Z d d d „ Z% d d „ Z& d d „ Z' d S(   sV   
IPython: tools for interactive and parallel computing in Python.

http://ipython.org
i    (   t   absolute_importNi   i   i   s4   IPython requires Python version 2.7 or 3.3 or above.t
   extensionsi   (   t   get_ipython(   t   release(   t   Application(   t   embed(   t   InteractiveShell(   t   test(   t   sys_info(   t   extract_module_localss   %s <%s>c         K@  sf   t  d ƒ \ } } |  d k r' | }  n  | d k r< | } n  d d l m } | d |  d | |  d S(   sü  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 : 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,
        allowing configuration of the Kernel.  Will only have an effect
        on the first embed_kernel call for a given process.
    i   i    (   t   embed_kernelt   modulet   local_nsN(   R	   t   Nonet   ipykernel.embedR
   (   R   R   t   kwargst   caller_modulet   caller_localst   real_embed_kernel(    (    sH   /data/av2000/mvv/env_mvv/lib/python2.7/site-packages/IPython/__init__.pyR
   =   s    		c         K@  s    d d l  m } | d |  |  S(   sÅ  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`.
    i    (   t   launch_new_instancet   argv(   t   IPython.terminal.ipappR   (   R   R   R   (    (    sH   /data/av2000/mvv/env_mvv/lib/python2.7/site-packages/IPython/__init__.pyt   start_ipython\   s    c         K@  s    d d l  m } | d |  |  S(   sƒ  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()`.
    
    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`.
    i    (   R   R   (   t   IPython.kernel.zmq.kernelappR   (   R   R   R   (    (    sH   /data/av2000/mvv/env_mvv/lib/python2.7/site-packages/IPython/__init__.pyt   start_kernelx   s    (   i   i   (   i   i   ((   t   __doc__t
   __future__R    t   ost   syst   version_infot   vt   ImportErrort   patht   appendt   joint   dirnamet   __file__t   core.getipythonR   t   coreR   t   core.applicationR   t   terminal.embedR   t   core.interactiveshellR   t   testingR   t   utils.sysinfoR   t   utils.frameR	   t   authort   author_emailt
   __author__t   licenset   __license__t   versiont   __version__R   R
   R   R   (    (    (    sH   /data/av2000/mvv/env_mvv/lib/python2.7/site-packages/IPython/__init__.pyt   <module>   s.   	0+			