ó
    Ñ]jà0  ã                   óê  • S r SSKrSSKrSSKrSSKrSSKJr  SSKJrJ	r	  SSK
Jr  SSK
Jr  SSKJr  SSKJr  SS	KJr  SS
KJr  SSKJrJrJrJr  SSKJr  SSKJrJr  SSKJ r J!r!J"r"  SSK#J$r$  SSK%J&r&  SSK'J(r(  SSK)J*r*J+r+J,r,J-r-J.r.  Sr/ " S S\5      r0\1" \5      r2\2Rg                  \!5        0 r4S r5\5" SSSS5        \5" SSSS5        \5" S S!S"S#5        \5" S$S%S&S'5        \5" S(S)S*S+5        \5" S,S-S.S/5        \" 5       r6S\6Rn                  l8        S0\6R$                  l9        S1\6RL                  l:        S2\6Rn                  l;        S2\6Rn                  l<        S2\6Rn                  l=        S3\6Rn                  l>        S4\6Rn                  l?        \6S54\4S6'   S7S8S900S:4\4S8'   S7S;S900S<4\4S='   \2Rg                  \45        \1" \5      r@\@Rg                  \"5         " S> S?\5      rA " S@ S7\\ 5      rBSBSA jrC\BRˆ                  rEg)Czp
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                   ó8   ^ • \ rS rSrSrU 4S jrU 4S jrSrU =r$ )ÚIPAppCrashHandleré?   zDsys.excepthook for IPython itself, leaves a detailed report on disk.c                 ór   >• [         R                  n[         R                  nSn[        [        U ]  XX45        g )Nz)https://github.com/ipython/ipython/issues)r   ÚauthorÚauthor_emailÚsuperr    Ú__init__)ÚselfÚappÚcontact_nameÚcontact_emailÚbug_trackerÚ	__class__s        €ÚS/home/mande/repo/quber/.venv/lib/python3.13/site-packages/IPython/terminal/ipapp.pyr&   ÚIPAppCrashHandler.__init__B   s1   ø€ Ü—~‘~ˆÜ×,Ñ,ˆØAˆÜÔ Ñ.Ø˜}õ	
ó    c                 ój  >• U R                   n[        [        U ]  U5      /nUR                  n U" US-   5        U R
                  R                  R                  S    H  nU" U5        M     U" S5        U" U R
                  R                  R                  S-   5        SR                  U5      $ !    N= f)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-   r5   ÚIPAppCrashHandler.make_reportJ   s£   ø€ ð ×"Ñ"ˆäÔ)¨4Ñ<¸YÓGÐHˆà—-‘-ˆð	Ù�GÐ7Ñ7Ô8ØŸ™Ÿ™×.Ñ.¨uÔ5�Ù˜–ñ 6áÐOÔPÙ�D—H‘H—N‘N×3Ñ3°DÑ8Ô9ð �w‰w�v‹Ðøð	Ùús   ¯A.B. Â.B2© )	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r&   r5   Ú__static_attributes__Ú__classcell__©r,   s   @r-   r    r    ?   s   ø† ÙNõ
÷ó r/   r    c                  ó8   • [         R                  [        U 6 5      $ ©N)Úfrontend_flagsÚupdater   )Úargss    r-   Ú<lambda>rO   c   s   € œ×-Ñ-¬l¸DÐ.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_exitzÂSet 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.ClassicPromptsr3   ÚnocolorÚPlainz:Gives IPython a similar feel to the classic Python prompt.ÚclassicÚTerminalIPythonAppÚquickTz*Enable quick startup with no config files.Úforce_interactz¬If 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                   ó*   • \ rS rSrSr\" SS9rS rSrg)ÚLocateIPythonAppé­   z!print the path to the IPython dir)z%IPython.core.profileapp.ProfileLocatez.print the path to an IPython profile directory)Úprofilec                 ó|   • U R                   b  U R                   R                  5       $ [        U R                  5        g rK   )ÚsubappÚstartÚprintÚipython_dir©r'   s    r-   r_   ÚLocateIPythonApp.start´   s-   € Ø�;‰;Ñ"Ø—;‘;×$Ñ$Ó&Ð&ä�$×"Ñ"Õ#r/   rA   N)	rB   rC   rD   rE   ÚdescriptionÚdictÚsubcommandsr_   rG   rA   r/   r-   rZ   rZ   ­   s   † Ø9€KÙð
ñ€Kõ
$r/   rZ   c                   ó  ^ • \ rS rSrSr\R                  r\r	\
r\r\r\" 5       r\" \\SS9R'                  SS9r\" S5      S 5       r\" S	S
S\R                  4SS9r\" S5      R'                  SS9r\" SSS9R'                  SS9r\" S5      S 5       r\" SSS9R'                  SS9r\" SSS9R'                  SS9r \" S5      S 5       r!\" SSS5      S 5       r"\" S5      r#\$S!U 4S jj5       r%S r&S r'S r(S r)S r*U =r+$ )"rU   é»   Úipythonz\Class to use to instantiate the TerminalInteractiveShell object. Useful for custom Frontends)ÚklassÚdefault_valueÚhelpT)ÚconfigÚclassesc                 ó€   • [         U R                  [        [        [        [
        [        [        [        [        [        /$ )zCThis has to be in a method, for TerminalIPythonApp to be available.)r   r,   r   r   r   r   r
   r   r   r   r   rb   s    r-   Ú_classes_defaultÚ#TerminalIPythonApp._classes_defaultË   s3   € ô  Ø�N‰NÜ$ÜÜÜÜÜÜÜÜð
ð 	
r/   )z"IPython.core.profileapp.ProfileAppz#Create and manage IPython profiles.)zipykernel.kernelapp.IPKernelAppz,Start a kernel without an attached frontend.z'IPython.terminal.ipapp.LocateIPythonApp)z"IPython.core.historyapp.HistoryAppz$Manage the IPython history database.)r\   ÚkernelÚlocateÚhistoryFz>Start IPython quickly by skipping the loading of config files.)rl   rV   c                 ó*   • US   (       a	  S U l         g g )NÚnewc                  ó   • g rK   rA   )ÚaÚkws     r-   rO   Ú3TerminalIPythonApp._quick_changed.<locals>.<lambda>õ   s   € °Tr/   )Úload_config_file©r'   Úchanges     r-   Ú_quick_changedÚ!TerminalIPythonApp._quick_changedò   s   € à�%�=Ù$9ˆDÕ!ð r/   z2Whether to display a banner upon starting IPython.zšIf 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.rW   c                 ó(   • US   (       a  SU l         g g )Nrv   T)Úinteractr|   s     r-   Ú_force_interact_changedÚ*TerminalIPythonApp._force_interact_changed  s   € à�%�=Ø ˆD�Mð r/   Úfile_to_runÚcode_to_runÚmodule_to_runc                 ól   • US   nU(       a  SU l         U(       a  U R                  (       d  SU l        g g g )Nrv   TF)Úsomething_to_runrW   r�   )r'   r}   rv   s      r-   Ú_file_to_run_changedÚ'TerminalIPythonApp._file_to_run_changed  s/   € à�U‰mˆÞØ$(ˆDÔ!Þ�t×*×*Ø %�•ð +ˆ3r/   c                 ót  >• [         [        U ]  U5        U R                  b  gU R                  (       a%  U R
                  (       d  U R                  S   U l        U R                  5         U R                  5         U R                  5         U R                  5         U R                  5         U R                  5         g)z8Do actions after construct, but before starting the app.Nr   )r%   rU   Ú
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„   ø€ ô 	Ô  $Ñ2°4Ô8Ø�;‰;Ñ"àà�?�? 4×#8×#8Ø#Ÿ™¨qÑ1ˆDÔØ�‰Ôà�‰Ôà×ÑÔà×ÑÔØ×ÑÔØ�‰Õr/   c                 óÌ   • U R                   R                  U U R                  U R                  U R                  S9U l        U R
                  R                  R                  U 5        g)z(initialize the InteractiveShell instance)ÚparentÚprofile_dirra   r8   N)Úinteractive_shell_classÚinstancer˜   ra   r8   r7   Úconfigurablesr6   rb   s    r-   r�   ÚTerminalIPythonApp.init_shell&  sV   € ð ×1Ñ1×:Ñ:À$Ø$(×$4Ñ$4Ø$(×$4Ñ$4¸d¿l¹lð ;ð LˆŒ
ð 	�
‰
× Ñ ×'Ñ'¨Õ-r/   c                 óÎ   • U R                   (       a+  U R                  (       a  U R                  R                  5         U R                  [
        R                  ::  a  [        5         gg)zoptionally display the bannerN)Údisplay_bannerr�   r7   Úshow_bannerÚ	log_levelÚloggingÚINFOr`   rb   s    r-   r�   ÚTerminalIPythonApp.init_banner1  s8   € à×× 4§=§=Ø�J‰J×"Ñ"Ô$à�>‰>œWŸ\™\Ó)¬5­7Ð)r/   c                 óL   • US:X  a  [         R                  " S5        SU l        gg)z,Replace --pylab='inline' with --pylab='auto'Úinlinez>'inline' not available as pylab backend, using 'auto' instead.ÚautoN)ÚwarningsÚwarnÚpylab)r'   ÚnameÚoldrv   s       r-   Ú_pylab_changedÚ!TerminalIPythonApp._pylab_changed8  s&   € à�(‹?Ü�MŠMð .ô /àˆD�Jð r/   c                 ó®  • U R                   b  U R                   R                  5       $ U R                  (       a6  U R                  R	                  S5        U R
                  R                  5         g U R                  R	                  S5        U R
                  R                  5         U R
                  R                  (       d  [        R                  " S5        g g )NzStarting IPython's mainloop...zIPython not interactive...r   )r^   r_   r�   ÚlogÚdebugr7   ÚmainloopÚrestore_term_titleÚlast_execution_succeededÚsysÚexitrb   s    r-   r_   ÚTerminalIPythonApp.start?  s…   € Ø�;‰;Ñ"Ø—;‘;×$Ñ$Ó&Ð&à�=�=Ø�H‰H�N‰NÐ;Ô<Ø�J‰J×ÑÕ!à�H‰H�N‰NÐ7Ô8Ø�J‰J×)Ñ)Ô+Ø—:‘:×6×6Ü—’˜•ð 7r/   )r„   r�   r{   r©   r7   rˆ   rK   ),rB   rC   rD   rE   rª   r   Úcl_usagerd   r    Úcrash_handler_classÚ	_examplesÚexamplesÚflagsÚaliasesr   rn   r   Úobjectr   Útagr™   r   rp   re   rZ   rf   r   Úauto_createrV   r   r~   rž   rW   r‚   r‰   rˆ   r   rŒ   r�   r�   r¬   r_   rG   rH   rI   s   @r-   rU   rU   »   s™  ø† Ø€DØ—.‘.€KØ+ÐØ€Hà€EØ€GÙ‹f€Gá"ØØ.Økñ÷ 
�c�€cÐð	 ñ ˆYÓñ
ó ð
ñ  ð
ð
ð :Ø×(Ñ(ð
ð
ñ€Kñ  �t“*—.‘.¨�.Ð-€Kñ �ØQñç	�c�€cÐð 
ñ ˆWÓñ:ó ð:ñ ˜$ØAñç	�c�€cÐð ñ ˜%ðñ÷ 
�c�€cÐð	 ñ
 ÐÓñ!ó ð!ñ ˆ]˜M¨?Ó;ñ&ó <ð&ñ ˜%“[Ðàöó ðò&	.ò3ò ÷ð r/   c                 óÞ   • U c
  [        5       n [        R                  R                  U S5      n[	        5       nUR
                  R                  U5        UR                  5         UR                  $ )z`Load the default config file from the default ipython_dir.

This is useful for embedded shells.
Úprofile_default)	r   ÚosÚpathr:   rU   Úconfig_file_pathsr6   r{   rm   )ra   r˜   r(   s      r-   Úload_default_configrÅ   L  sY   € ð
 ÑÜ%Ó'ˆä—'‘'—,‘,˜{Ð,=Ó>€KÜ
Ó
€CØ×Ñ× Ñ  Ô-Ø×ÑÔØ�:‰:Ðr/   rK   )FrF   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    re   r»   rM   rL   ÚaddflagÚclassic_configÚInteractiveShellÚ
cache_sizeÚpprintÚprompts_classÚseparate_inÚseparate_outÚseparate_out2ÚcolorsÚxmoder¼   rZ   rU   rÅ   Úlaunch_instanceÚlaunch_new_instancerA   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Ñ ð ˜W tÐ,Ð-Ø0ð€ˆwÑ ð Ð-°Ð5Ð6ðð€ˆsÑ ð ‡�ˆ^Ô á
ˆ|Ó
€Ø ‡�ˆ}Ô ô$Ð-ô $ôOÐ/Ð1Dô Oôbð )×8Ñ8Ñ r/   