+
    ^|i0                        R t ^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RIHtH	t	 ^ RI
Ht ^ RI
Ht ^ RIHt ^ RIHt ^ RIHt ^ R	IHt ^ R
IHtHtHtHt ^ RIHt ^ RIHtHt ^ RIH t H!t!H"t" ^ RI#H$t$ ^RI%H&t& ^ RI'H(t( ^ RI)H*t*H+t+H,t,H-t-H.t. Rt/ ! R R]4      t0]1! ]4      t2]2Pg                  ]!4       / t4R t5]5! RRRR4       ]5! RRRR4       ]5! RRR R!4       ]5! R"R#R$R%4       ]5! R&R'R(R)4       ]5! R*R+R,R-4       ]! 4       t6^ ]6Pn                  n8        R.]6P$                  n9        R/]6PL                  n:        R0]6Pn                  n;        R0]6Pn                  n<        R0]6Pn                  n=        R1]6Pn                  n>        R2]6Pn                  n?        ]6R33]4R4&   R5R6R7//R83]4R6&   R5R9R7//R:3]4R;&   ]2Pg                  ]44       ]1! ]4      t@]@Pg                  ]"4        ! R< R=]4      tA ! R> R5]] 4      tBR@R? ltC]BP                  tER# )Azp
The :class:`~traitlets.config.application.Application` object for the command
line :command:`ipython` program.
N)Config)boolean_flagcatch_config_error)release)usage)IPCompleter)CrashHandler)PlainTextFormatter)HistoryManager)
ProfileDirBaseIPythonApplication
base_flagsbase_aliases)MagicsManager)ScriptMagicsLoggingMagics)InteractiveShellAppshell_flagsshell_aliases)StoreMagics)TerminalInteractiveShell)get_ipython_dir)BoolListdefaultobserveTypea  
ipython --matplotlib       # enable matplotlib integration
ipython --matplotlib=qt    # enable matplotlib integration with qt4 backend

ipython --log-level=DEBUG  # set logging to DEBUG
ipython --profile=foo      # start with profile foo

ipython profile create foo # create profile foo w/ default config files
ipython help profile       # show the help for the profile subcmd

ipython locate             # print the path to the IPython directory
ipython locate profile foo # print the path to the directory for profile `foo`
c                   B   a a ] tR t^?t oRtV 3R ltV 3R ltRtVtV ;t	# )IPAppCrashHandlerzDsys.excepthook for IPython itself, leaves a detailed report on disk.c                t   < \         P                  p\         P                  pR p\        \        V `  WW44       R# )z)https://github.com/ipython/ipython/issuesN)r   authorauthor_emailsuperr   __init__)selfappcontact_namecontact_emailbug_tracker	__class__s   &&   8/usr/lib/python3/dist-packages/IPython/terminal/ipapp.pyr#   IPAppCrashHandler.__init__B   s1    ~~,,A.}	
    c                  < V P                   p\        \        V `  V4      .pVP                  p V! VR,           4       V P
                  P                  P                  R,           F  pV! V4       K  	  V! R4       V! V P
                  P                  P                  R,           4       RP                  T4      #     L; i)z*Return a string containing a crash report.zHistory of session input:_ihz7
*** Last line of input (may not be in above history):

 )
section_sepr"   r   make_reportappendr%   shelluser_ns_last_input_linejoin)r$   	tracebacksec_sepreportrpt_addliner)   s   &&    r*   r2   IPAppCrashHandler.make_reportJ   s     "")4<YGH--	G778..u55 6OPDHHNN33D89 wwv	s   A:B: :B> )
__name__
__module____qualname____firstlineno____doc__r#   r2   __static_attributes____classdictcell____classcell__r)   __classdict__s   @@r*   r   r   ?   s     N
 r,   r   c                  :    \         P                  \        V !  4      # N)frontend_flagsupdater   )argss   *r*   <lambda>rN   c   s    --lD.ABr,   zautoedit-syntaxz(TerminalInteractiveShell.autoedit_syntaxz1Turn on auto editing of files with syntax errors.z2Turn off auto editing of files with syntax errors.zsimple-promptz&TerminalInteractiveShell.simple_promptz-Force simple minimal prompt using `raw_input`z1Use a rich interactive prompt with prompt_toolkitbannerz!TerminalIPythonApp.display_bannerz'Display a banner upon starting IPython.z-Don't display a banner upon starting IPython.zconfirm-exitz%TerminalInteractiveShell.confirm_exitzSet to confirm when you try to exit IPython with an EOF (Control-D
    in Unix, Control-Z/Enter in Windows). By typing 'exit' or 'quit',
    you can force a direct exit without any confirmation.z#Don't prompt the user when exiting.tipz#TerminalInteractiveShell.enable_tipz Shows a tip when IPython starts.z#Don't show tip when IPython starts.z
term-titlez#TerminalInteractiveShell.term_titlez'Enable auto setting the terminal title.z(Disable auto setting the terminal title.Fz'IPython.terminal.prompts.ClassicPromptsr0   nocolorPlainz:Gives IPython a similar feel to the classic Python prompt.classicTerminalIPythonAppquickTz*Enable quick startup with no config files.force_interactzIf running code from the command line, become interactive afterwards.
    It is often useful to follow this with `--` to treat remaining flags as
    script arguments.
    ic                   <   a  ] tR t^t o Rt]! RR7      tR tRtV t	R# )LocateIPythonAppz!print the path to the IPython dir)profilec                    V P                   e   V P                   P                  4       # \        V P                  4       R # rJ   )subappstartprintipython_dirr$   s   &r*   r]   LocateIPythonApp.start   s-    ;;";;$$&&$""#r,   r>   N)z%IPython.core.profileapp.ProfileLocatez.print the path to an IPython profile directory)
r?   r@   rA   rB   descriptiondictsubcommandsr]   rD   rE   )rH   s   @r*   rY   rY      s#     9K
K
$ $r,   rY   c                   H  a a ] tR t^t oRt]P                  t]t	]
t]t]t]! 4       t]! ]]RR7      P'                  RR7      t]! R4      R 4       t]! RRR]P                  3RR	7      t]! R4      P'                  RR7      t]! R
RR7      P'                  RR7      t]! R4      R 4       t]! RRR7      P'                  RR7      t]! R
RR7      P'                  RR7      t ]! R4      R 4       t!]! RRR4      R 4       t"]! R
4      t#]$R V 3R ll4       t%R t&R t'R t(R t)Rt*Vt+V ;t,# )!rT   ipythonz\Class to use to instantiate the TerminalInteractiveShell object. Useful for custom Frontends)klassdefault_valuehelpT)configclassesc                    \         V P                  \        \        \        \
        \        \        \        \        \        .# )zCThis has to be in a method, for TerminalIPythonApp to be available.)r   r)   r   r
   r   r   r	   r   r   r   r   r`   s   &r*   _classes_default#TerminalIPythonApp._classes_default   s3      NN$
 	
r,   z'IPython.terminal.ipapp.LocateIPythonApp)rZ   kernellocatehistoryFz>Start IPython quickly by skipping the loading of config files.)ri   rU   c                8    VR ,          '       d   R V n         R# R# )newc                      R # rJ   r>   )akws   *,r*   rN   3TerminalIPythonApp._quick_changed.<locals>.<lambda>   s    Tr,   N)load_config_filer$   changes   &&r*   _quick_changed!TerminalIPythonApp._quick_changed   s    %==$9D! r,   z2Whether to display a banner upon starting IPython.zIf a command or file is given via the command-line,
        e.g. 'ipython foo.py', start an interactive shell after executing the
        file or command.rV   c                6    VR ,          '       d
   RV n         R# R# )rs   TN)interactry   s   &&r*   _force_interact_changed*TerminalIPythonApp._force_interact_changed  s    %== DM r,   file_to_runcode_to_runmodule_to_runc                    VR ,          pV'       d   RV n         V'       d   V P                  '       g
   RV n        R# R# R# )rs   TFN)something_to_runrV   r~   )r$   rz   rs   s   && r*   _file_to_run_changed'TerminalIPythonApp._file_to_run_changed  s2    Um$(D!t*** % +3r,   c                  < \         \        V `  V4       V P                  e   R# V P                  '       d+   V P
                  '       g   V P                  ^ ,          V n        V P                  4        V P                  4        V P                  4        V P                  4        V P                  4        V P                  4        R# )z8Do actions after construct, but before starting the app.N)r"   rT   
initializer\   
extra_argsr   r   	init_path
init_shellinit_bannerinit_gui_pylabinit_extensions	init_code)r$   argvr)   s   &&r*   r   TerminalIPythonApp.initialize  s     	 $248;;"???4#8#8#8#q1Dr,   c                    V P                   P                  V V P                  V P                  V P                  R7      V n        V P
                  P                  P                  V 4       R# )z(initialize the InteractiveShell instance)parentprofile_dirr_   r5   N)interactive_shell_classinstancer   r_   r5   r4   configurablesr3   r`   s   &r*   r   TerminalIPythonApp.init_shell&  sV     11::$$($4$4$($4$4dll ; L
 	

  ''-r,   c                    V P                   '       d-   V P                  '       d   V P                  P                  4        V P                  \
        P                  8:  d   \        4        R# R# )zoptionally display the bannerN)display_bannerr~   r4   show_banner	log_levelloggingINFOr^   r`   s   &r*   r   TerminalIPythonApp.init_banner1  s=    4===JJ""$>>W\\)57)r,   c                R    VR8X  d    \         P                  ! R4       RV n        R# R# )z,Replace --pylab='inline' with --pylab='auto'inlinez>'inline' not available as pylab backend, using 'auto' instead.autoN)warningswarnpylab)r$   nameoldrs   s   &&&&r*   _pylab_changed!TerminalIPythonApp._pylab_changed8  s&    (?MM . /DJ r,   c                   V P                   e   V P                   P                  4       # V P                  '       d8   V P                  P	                  R4       V P
                  P                  4        R # V P                  P	                  R4       V P
                  P                  4        V P
                  P                  '       g   \        P                  ! ^4       R # R # )NzStarting IPython's mainloop...zIPython not interactive...)r\   r]   r~   logdebugr4   mainlooprestore_term_titlelast_execution_succeededsysexitr`   s   &r*   r]   TerminalIPythonApp.start?  s    ;;";;$$&&===HHNN;<JJ!HHNN78JJ))+::666 7r,   )r   r~   rx   r   r4   r   )z"IPython.core.profileapp.ProfileAppz#Create and manage IPython profiles.)zipykernel.kernelapp.IPKernelAppz,Start a kernel without an attached frontend.)z"IPython.core.historyapp.HistoryAppz$Manage the IPython history database.rJ   )-r?   r@   rA   rB   r   r   cl_usagerb   r   crash_handler_class	_examplesexamplesflagsaliasesr   rk   r   objectr   tagr   r   rm   rc   rY   rd   r   auto_createrU   r   r{   r   rV   r   r   r   r   r   r   r   r   r]   rD   rE   rF   rG   s   @@r*   rT   rT      s    D..K+HEGfG".k 
cc	  Y
 
  

 :((

K  t*...-K Q	cc 
 W: : $A	cc  % 
cc	 
 ! ! ]M?;& <& %[ &	.3  r,   c                    V f   \        4       p \        P                  P                  V R4      p\	        4       pVP
                  P                  V4       VP                  4        VP                  # )z`Load the default config file from the default ipython_dir.

This is useful for embedded shells.
profile_default)	r   ospathr7   rT   config_file_pathsr3   rx   rj   )r_   r   r%   s   &  r*   load_default_configr   L  sY    
 %''',,{,=>K

C  -::r,   rJ   )FrC   r   r   r   r   traitlets.config.loaderr   traitlets.config.applicationr   r   IPython.corer   r   IPython.core.completerr   IPython.core.crashhandlerr   IPython.core.formattersr	   IPython.core.historyr
   IPython.core.applicationr   r   r   r   IPython.core.magicr   IPython.core.magicsr   r   IPython.core.shellappr   r   r   IPython.extensions.storemagicr   interactiveshellr   IPython.pathsr   	traitletsr   r   r   r   r   r   r   rc   r   rL   rK   addflagclassic_configInteractiveShell
cache_sizepprintprompts_classseparate_inseparate_outseparate_out2colorsxmoder   rY   rT   r   launch_instancelaunch_new_instancer>   r,   r*   <module>r      sC    	 
  * I    . 2 6 /  -  6 6 ) 	$ B 	Z [ 
B E;< A7;
 517 ?= *	 	)*)	 ;-. -.   *+0 ! ! (-  ' ' 5 /1   +/1   ,02   -)2   &(/   % @y  Wt,-0w  -56s  ^ 
|
 } $- $O/1D Ob )88 r,   