
    yhs                    *   % S r SSKJr  SSKrSSKrSSKrSSKrSSK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  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JrJrJrJrJr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*  SSK+J,r,  SSK-J.r.  SSK/J0r1  SSK/J2r2  SSK3J4r4   SSK5J6r6   SSK8J9r:  SSK8J;r<  Sr=Sr>S r?\
R                  " 5       rASqBS\CS'   S rD\?\lE        \D\lF         " S S\15      rG " S  S!\G5      r0g! \7 a    Sr6 N^f = f! \7 a    Sr= N]f = f)"z!The IPython kernel implementation    )annotationsN)contextmanager)partial)release)line_at_cursortoken_at_cursor)extract_header)	AnyBool	HasTraitsInstanceListTypedefaultobserveobserve_compat)	ZMQStream   BaseComm)CommManager)XCachingCompiler)_use_appnope)	OutStream)Kernel)_accepts_parameters)ZMQInteractiveShell)_asyncio_runner)provisionalcompleter)rectify_completionsTF_jupyter_types_experimentalc                     [        U 0 UD6$ )zCreate a new Comm.r   argskwargss     jc:\Users\julio\OneDrive\Documentos\Trabajo\IdeasFrscas\Cabanna\env\Lib\site-packages\ipykernel/ipkernel.py_create_commr'   2   s    T$V$$    zCommManager | None_comm_managerc                     [         c'  [           [         c  [        U 0 UD6q SSS5        [         $ [         $ ! , (       d  f       [         $ = f)zCreate a new CommManager.N)r)   
_comm_lockr   r#   s     r&   _get_comm_managerr,   <   sD     $ +T <V <  = Z s	   5
Ac                  Z  ^  \ rS rSrSr\" SSS9r\" \5      r	\
" SSS9R                  SS9r\" \SS9r\" 5       r\" S	5      \S
 5       5       r\" SSS9r\" S5      S 5       r\" S5      \S 5       5       r\" 5       r\" 5       rU 4S jr\" SS\R:                  SS -  S.SSS.SSS.SSS.SSS.SSS.SS S./5      R                  SS9rS!r\ RB                  r"S"\RB                  RG                  5       S#   S$S!\R:                  S#   S%.S&S'-  S"S(S).r$S* r%\&S+ 5       r'S, r(U 4S- jr)SFU 4S. jjr*U 4S/ jr+S0 r,SGS1 jr-S2 r.\&S3 5       r/\/R`                  S4 5       r/\1S5 5       r2U 4S6 jr3   SHSSS7.S8 jjr4S9 r5S: r6S; r7SIS< jr8      SJS= jr9S> r:S? r;S@ r<SA r=SB r>SC r?    SKSD jr@SErAU =rB$ )LIPythonKernelJ   zThe IPython Kernel class.z1IPython.core.interactiveshell.InteractiveShellABCT)
allow_nonezUSet this flag to False to deactivate the use of experimental IPython completion APIs.)help)configuser_modulec                H    U R                   b  US   U R                   l        g g Nnew)shellr3   selfchanges     r&   _user_module_changed"IPythonKernel._user_module_changedY   s#     ::!%+E]DJJ" "r(   zcollections.abc.Mappinguser_nsc                    [        5       $ N)dictr9   s    r&   _default_user_nsIPythonKernel._default_user_nsa   s	    vr(   c                |    U R                   b/  US   U R                   l        U R                   R                  5         g g r5   )r7   r=   init_user_nsr8   s     r&   _user_ns_changedIPythonKernel._user_ns_changede   s3     ::!!'DJJJJ##% "r(   c           	       > [         TU ]  " S0 UD6  SSKJnJn  U(       aN  U" U R
                  U R                  U R                  U R                  U R                  U R                  5      U l        U R                  R                  U U R                  U R                  U R                  U [         S9U l        U R                  U R"                  R$                  l	        [&        R(                  R+                  S5      nU(       a  X@R"                  R                  S'   U R,                  U R"                  R$                  l        U R1                  S5      U R"                  R$                  l        U R                  U R"                  R4                  l	        U R,                  U R"                  R4                  l        [6        R8                  " 5       U l        [=        U R:                  [>        5      (       d   eU R"                  R@                  RC                  U R:                  5        / SQnU H&  n[E        U R:                  U5      U RF                  U'   M(     [I        5       (       a%  U RJ                  (       a  SS	K&nURO                  5         0 U l(        U RS                  5         [U        [V        S
5      (       a*  [V        RX                  RC                  U RZ                  5        g	g	)zInitialize the kernel.r   )Debugger_is_debugpy_available)parentprofile_dirr3   r=   kernelcompiler_classJPY_SESSION_NAME__session__execute_result)	comm_opencomm_msg
comm_closer   N	callbacks ).super__init__debuggerrI   rJ   logdebugpy_stream_publish_debug_eventdebug_shell_socketsessiondebug_just_my_codeshell_classinstancerL   r3   r=   r   r7   displayhookosenvirongetiopub_socket
pub_socket_topictopicdisplay_pubcommget_comm_managercomm_manager
isinstancer   configurablesappendgetattrshell_handlersr   _darwin_app_napappnopenope_new_threads_parent_header_initialize_thread_hookshasattrgcrU   _clean_thread_parent_frames)	r9   r%   rI   rJ   jupyter_session_namecomm_msg_typesmsg_typert   	__class__s	           r&   rX   IPythonKernel.__init__q   s   "6"= !$##))''''DM %%..((((LL+ / 

 *.

&!zz~~.@A0DJJ}-,0,=,=

)'+{{3C'D

$)-

&,0,=,=

) 113$++Y7777

  ''(9(9:@&H,3D4E4Ex,PD) ' >>d22LLN*,'%%'2{## LL @ @A $r(   zPython Referencezhttps://docs.python.org/%i.%iN   )texturlzIPython Referencez&https://ipython.org/documentation.htmlzNumPy Referencez+https://docs.scipy.org/doc/numpy/reference/zSciPy Referencez+https://docs.scipy.org/doc/scipy/reference/zMatplotlib Referencez$https://matplotlib.org/contents.htmlzSymPy Referencez'http://docs.sympy.org/latest/index.htmlzpandas Referencez-https://pandas.pydata.org/pandas-docs/stable/ipythonpythonr   ztext/x-python)nameversionz	ipython%d   z.py)r   r   mimetypecodemirror_modepygments_lexernbconvert_exporterfile_extensionc                    SSK Jn  U(       a`  US   R                  R                  S5      nU R                  R                  SU5        U R                   R                  R                  U5        g g )Nr   rJ   zutf-8zDebugpy received: %s)rY   rJ   bytesdecoderZ   debug
tcp_clientreceive_dap_frame)r9   msgrJ   frames       r&   dispatch_debugpyIPythonKernel.dispatch_debugpy   sP    3 FLL''0EHHNN159MM$$66u=	 !r(   c                R    U R                   (       a  U R                   R                  $ g r?   )r7   bannerrA   s    r&   r   IPythonKernel.banner   s    ::::$$$r(   c                X   #     U R                   R                  5       I Sh  vN   M$   N7f)zPoll the stopped queue.N)rY   handle_stopped_eventrA   s    r&   poll_stopped_queue IPythonKernel.poll_stopped_queue   s&     --44666 6s   *(*c                  > U R                   (       a  SU R                   l        U R                  c  U R                  R	                  S5        O$U R                  R                  U R                  SS9  [        TU ]!  5         U R                  (       aD  [        R                  " U R                  5       U R                  R                  R                  5        gg)zStart the kernel.FNz7debugpy_stream undefined, debugging will not be enabledcopy)r7   exit_nowr[   rZ   warningon_recvr   rW   startasynciorun_coroutine_threadsafer   control_threadio_loopasyncio_loop)r9   r~   s    r&   r   IPythonKernel.start   s    ::"'DJJ&HHVW''(=(=E'J,,'')4+>+>+F+F+S+S r(   c                   > [         TU ]  XU5        US:X  a.  U R                  (       a  U R                  R                  U5        ggg)z]Overridden from parent to tell the display hook and output streams
about the parent message.
r7   N)rW   
set_parentr7   )r9   identrK   channelr~   s       r&   r   IPythonKernel.set_parent   s<     	5'2g$**JJ!!&) #-r(   c                b   > [         TU ]  U5      nUR                  SU R                  S.5        U$ )zFInitialize metadata.

Run at the beginning of each execution request.
T)dependencies_metengine)rW   init_metadataupdater   )r9   rK   mdr~   s      r&   r   IPythonKernel.init_metadata  s8    
 W"6* 			$(**	
 	r(   c                D    US   US'   US   S:X  a  US   S:X  a  SUS'   U$ )zHFinish populating metadata.

Run after completing an execution request.
statuserrorenameUnmetDependencyFr   rV   )r9   rK   metadatareply_contents       r&   finish_metadataIPythonKernel.finish_metadata  s=     +84"g--2HL]2]+0H'(r(   c                    Xl         [        R                  U l        U R                  [        l        [
        R
                  U l        U R
                  [
        l        g)zJForward raw_input and getpass to the current frontend.

via input_request
N)_allow_stdinbuiltinsinput_sys_raw_input	raw_inputgetpass_save_getpass)r9   allow_stdins     r&   _forward_inputIPythonKernel._forward_input!  s8    
 (&nn$__,,r(   c                X    U R                   [        l        U R                  [        l        g)zRestore raw_input, getpassN)r   r   r   r   r   rA   s    r&   _restore_inputIPythonKernel._restore_input.  s    ,,,,r(   c                R    U R                   (       a  U R                   R                  $ g r?   )r7   execution_countrA   s    r&   r   IPythonKernel.execution_count4  s    ::::---r(   c                    g r?   rV   )r9   values     r&   r   r   :  s     	r(   c              #    ^ ^#    [         R                  " 5       mS nTR                  [        X!5      5        UR                  [        UT5      5        U U4S jn[        R                  " [        R
                  U5      n Sv   [        R                  " [        R
                  U5        g! [        R                  " [        R
                  U5        f = f7f)a   ContextManager for capturing SIGINT and cancelling a future

SIGINT raises in the event loop when running async code,
but we want it to halt a coroutine.

Ideally, it would raise KeyboardInterrupt,
but this turns it into a CancelledError.
At least it gets a decent traceback to the user.
c                z    U R                  5       (       d  U R                  5       (       a  g U R                  5         g r?   )	cancelleddonecancel)f_ignoreds     r&   cancel_unless_done;IPythonKernel._cancel_on_sigint.<locals>.cancel_unless_doneO  s#    {{}}HHJr(   c                 H   > U4S jnTR                   R                  U5        g )Nc                 ~   > T R                  5       (       d  T R                  5       (       a  g T R                  S5        g )Nr   )r   r   
set_result)sigint_futures   r&   set_sigint_resultQIPythonKernel._cancel_on_sigint.<locals>.handle_sigint.<locals>.set_sigint_result\  s1     **,,0B0B0D0D((+r(   )r   add_callback)r$   r   r9   r   s     r&   handle_sigint6IPythonKernel._cancel_on_sigint.<locals>.handle_sigint[  s    , LL%%&78r(   N)r   Futureadd_done_callbackr   signalSIGINT)r9   futurer   r   save_sigintr   s   `    @r&   _cancel_on_sigintIPythonKernel._cancel_on_sigint@  s      .5^^-=	 	''0B(KL 	  );]!KL	9 mmFMM=A	6 MM&--5FMM&--5s   A:C?B) &C)'CCc                z   >#    [        U5      nU R                  U5        [        TU ]  XU5      I Sh  vN   g N7f)z/Override for cell output - cell reconciliation.N)r	   %_associate_new_top_level_threads_withrW   execute_request)r9   streamr   rK   parent_headerr~   s        r&   r   IPythonKernel.execute_requestl  s3     &v.22=Ag%fV<<<s   0;9;)	cell_metacell_idc          	       ^#    U R                   mTc   eU R                  U5        0 n[        TS5      (       a7  [        TS5      (       a&  TR                  n	TR                  n
[        U	S/5      nO S n
U4S jn	[        TR                  S/5      n Sn TR                  U5      n[        (       a  TR                  [        L a  [        R                  " 5       R                  5       (       a  U
" UUUS9(       a  US   (       a  U	" UUUUUUS9nO
U	" UUUUUS	9n[        R                   " U5      nU R#                  U5         Sn UI Sh  vN nTR$                  R'                  S
5        U(       d  TR$                  R'                  SU5        SSS5        O-US   (       a  TR                  UUUUS9nOTR                  XUS9nU R)                  5         WR*                  b  UR*                  OUR,                  nUR.                  (       a  SUS'   OvSUS'   UR1                  TR2                  =(       d    / [5        [7        U5      R8                  5      [5        U5      S.5        [;        U R<                  U R>                  SS9nUUS'   TR@                  S-
  US'   SU;   a.  U RB                  RE                  SSRG                  US   5      5        US   S:X  a  TRI                  U=(       d    0 5      US'   O0 US'   TRJ                  RM                  5       US'   TRJ                  RO                  5         U$ ! [         a    Un[        R                  " 5       n GNf = f GN! TR$                  R'                  S
5        U(       d  TR$                  R'                  SU5        f f = f! , (       d  f       GN= f! U R)                  5         f = f7f)zHandle code execution.Nrun_cell_asyncshould_run_asyncr   c                    g)NFrV   )cells    r&   <lambda>*IPythonKernel.do_execute.<locals>.<lambda>  s    Er(   c                 0   >#    TR                   " U 0 UD6$ 7fr?   )run_cell)r$   r%   r7   s     r&   r   *IPythonKernel.do_execute.<locals>.run_cell  s     ~~t6v66s   )transformed_cellpreprocessing_exc_tuple)store_historysilentr   r  r   )r  r  r   r  post_executepost_run_cell)r  r  r   )r  r  okr   r   	tracebackr   evalueexecuteengine_uuid	engine_idmethodengine_infor   r   r  z Exception in execute request:
%s
user_expressionspayload)(r7   r   rx   r   r   r   r   transform_cell	Exceptionsysexc_infor   loop_runnerr   get_event_loop
is_runningensure_futurer   eventstriggerr   error_before_execerror_in_execsuccessr   _last_tracebackstrtype__name__r@   r   int_idr   rZ   infojoinr  payload_managerread_payloadclear_payload)r9   coder  r  r  r   r   r   r   r   r   accepts_paramsr  r   corocoro_futurereserre_infor7   s                      @r&   
do_executeIPythonKernel.do_executer  s     

   K(*,5*++?Q0R0R++H$550I;GN17 1)MN?	" '+#9#(#7#7#=   %%8**,7799$%5,C "),#&3%)90G 'D $&3%)90GD &33D9++K8CG$//,,^<%!LL00#F 98 "),..&3% '	 ) C  ..SY.ZC!'*'<'<'Hc##cN_N_;;&*M(#&-M(#  !&!6!6!<" c!3!34!#h djjDKKPYZF+1M-( ,1+@+@1+D'(-'HHMM3		-45 "d*050F0FGWG][]0^M,- 13M,-
 $)#8#8#E#E#Gi  	++-M  9#' *-,,.'9J 0,,^<%!LL00#F  & 98, !s   BON/ L. %BN/ ?NMM	M>N6N/ E-O.!MN/ MN/ MANN
N,'N/ /OOc                   [         (       a"  U R                  (       a  U R                  X5      $ Uc  [        U5      n[	        X5      u  p4X$-
  nU R
                  c   eU R
                  R                  SX55      u  pgUUU[        U5      -
  0 SS.$ )zHandle code completion. r  matches
cursor_endcursor_startr   r   )_use_experimental_60_completionuse_experimental_completions_experimental_do_completelenr   r7   complete)r9   r*  
cursor_poslineoffsetline_cursortxtr6  s           r&   do_completeIPythonKernel.do_complete   s    **t/P/P11$CC
 TJ%d7 )zz%%%zz**2tA$&S1
 	
r(   c                p   #    SSK Jn  U(       a#  U R                   R                  U5      I Sh  vN $ g N7f)zHandle a debug request.r   r   N)rY   rJ   process_request)r9   r   rJ   s      r&   do_debug_requestIPythonKernel.do_debug_request  s+     3 66s;;; <s   ,646c                \   Uc  [        U5      n[        5          U R                  c   eU R                  R                  R	                  X5      n[        [        X5      5      n/ nU HQ  nUR                  [        UR                  UR                  UR                  UR                  UR                  S95        MS     SSS5        W(       a:  US   R                  nUS   R                  nU V	s/ s H  oR                  PM     n
n	OUnUn/ n
U
UU[        W0SS.$ ! , (       d  f       Nc= fs  sn	f )z4
Experimental completions from IPython, using Jedi.
N)r   endr   r"  	signaturer   r  r5  )r<  _provisionalcompleterr7   	Completercompletionslist_rectify_completionsrp   r@   r   rJ  r   r"  rK  _EXPERIMENTAL_KEY_NAME)r9   r*  r>  raw_completionsrN  compscompsecr6  s              r&   r;  'IPythonKernel._experimental_do_complete  s    TJ"$::)))"jj22>>tPO3DJKKE#"jj HH!YY!YY"&.. $ %" A$$AA""A'23{!vv{G3GAAG /7
 	
5 %$( 4s   B"D,D)
D&c                   [        X5      nSS0n0 US'   0 US'   U R                  c   e [        R                  S:  a  U R                  R	                  UUUS9nOU R                  R	                  XSS9nUS   R                  U5        U R                  R                  (       d  US   R                  S5        S	US
'   U$ ! [         a	    SUS
'    U$ f = f)zHandle code inspection.r   r  datar   )   )detail_levelomit_sections)r\  z	text/htmlTfoundF)	r   r7   r   version_infoobject_inspect_mimer   enable_html_pagerpopKeyError)r9   r*  r>  r\  r]  r   r   bundles           r&   
do_inspectIPythonKernel.do_inspectF  s    t0+3T*: "f$&j!zz%%%	+##t+ 77!-"/ 8  777X&!((0:://f%))+6%)M'"   	+%*M'"	+s   BB= =CCc
                H   U R                   c   eUS:X  a&  U R                   R                  R                  XsUSS9n
OZUS:X  a&  U R                   R                  R                  XEXcUS9n
O.US:X  a&  U R                   R                  R	                  XX'U	S9n
O/ n
S[        U
5      S	.$ )
zHandle code history.tailT)rawoutputinclude_latestrange)ri  rj  search)ri  rj  nuniquer  )r   history)r7   history_managerget_tail	get_rangerm  rO  )r9   hist_access_typerj  ri  r^   r   stoprn  patternro  hists              r&   
do_historyIPythonKernel.do_historyb  s     zz%%%v%::--666$ 7 D (::--77f 8 D )::--44V 5 D D Dz
 	
r(   c                Z    U R                   (       a  SU R                   l        [        SUS9$ )zHandle kernel shutdown.Tr  )r   restart)r7   r   r@   )r9   r{  s     r&   do_shutdownIPythonKernel.do_shutdown  s"    ::"&DJJ411r(   c                    [        U R                  SS5      nUc%  U R                  c   eU R                  R                  nUR                  U5      u  p4SU0nUS:X  a  SU-  US'   U$ )zHandle an is_complete request.input_transformer_managerNr   
incomplete indent)rq   r7   input_splittercheck_complete)r9   r*  transformer_managerr   indent_spacesrs         r&   do_is_completeIPythonKernel.do_is_complete  st    %djj2MtT&::)))"&**";"; 3 B B4 Hv\!-AhKr(   c           	         SSK JnJn  U R
                  nUc   e UR                  nS[        U5      R                  SS5      -   S-   n	U" X(SS	9u  pn[        U
S
S5      nU	S-   nU	S-   nU	S-   nU	S-   nXXXUS0nUR                  U5        U SU SU SU S3n [        UUR                  UR                  5        UR                  U5      nU H  nUR                  U5        M     U R                  c   eU" UU R                  R                   U R                  R"                  S9nSS0nUU4$ ! [         a    SSKJnJn   GN9f = f! U H  nUR                  U5        M     f = f! [$         a  nUR'                  5         UR(                  =(       d    / [        [+        U5      R,                  5      [        U5      S.n[/        U R0                  U R2                  SS9nUUS'   U R5                  U R6                  SUU R9                  S5      S9  U R:                  R=                  SSR?                  US   5      5        / nSUS'    SnAUU4$ SnAff = f)zHandle an apply request.r   )serialize_objectunpack_apply_messager   N_-r4  Fr   r#  r   r$   r%   resultz = z(*z,**))buffer_thresholditem_thresholdr   r  r  applyr  r  r   )r   zException in apply request:
%sr  r  ) ipyparallel.serializer  r  ImportError	serializer7   r=   r!  replacerq   r   execuser_global_nsre   rb  r^   r  r  BaseExceptionshowtracebackr   r"  r#  r@   r   r$  send_responserf   rh   rZ   r%  r&  )r9   contentbufsmsg_idreply_metadatar  r  r7   workingprefixr   r$   r%   fnameargname	kwargname
resultnamensr*  r  key
result_bufr   rV  r0  s                            r&   do_applyIPythonKernel.do_apply  sl   	JT 

   5	-mmG3v;..sB77#=F24uMOAVAz3/ESLEvoG)I(*JG9j$OBNN2 \UG2gYc)AFD%T5//? Z0CKK$  <<+++)!%!>!>#||::J8 &t,Mj((y  	JII	J4 CKK$   	.!"228bT!W--.a&M djjDKKPWXF+1M-(!!kk'*	   HHMM;TYY}U`Ga=bcJ&-M(# j((1	.sC   D. A>E& 2E AE& .EEE##E& &
I0CI

Ic                l    U R                   (       a  U R                   R                  S5        [        SS9$ )zClear the kernel.Fr  )r   )r7   resetr@   rA   s    r&   do_clearIPythonKernel.do_clear  s&    ::JJU#4  r(   c                    Xl         g)zBStore the parent header to associate it with new top-level threadsN)rv   )r9   r   s     r&   r   3IPythonKernel._associate_new_top_level_threads_with  s    *7'r(   c                R  ^^^^^^ U R                   mU R                  m[        R                  " 5       mU m[        R                  R
                  m[        R                  R                  mSUUUUU4S jjnSU4S jjnU[        R                  l        U[        R                  l        g)z=Store thread hierarchy and thread-parent_header associations.c                  >  U R                   nTT4 H]  n[        U[        5      (       d  M  UT:X  a%  TR                  UR
                  U R                  '   ME  XR                  U R                  '   M_     T" U 5        g! [         a     gf = f)a  Wrap the `threading.Thread.start` to intercept thread identity.

This is needed because there is no "start" hook yet, but there
might be one in the future: https://bugs.python.org/issue14073

This is a no-op if the `self._stdout` and `self._stderr` are not
sub-classes of `OutStream`.
N)_ipykernel_parent_thread_identAttributeErrorrn   r   rv   _thread_to_parent_headerr   _thread_to_parent)r9   rK   r   _threading_Thread_runrM   kernel_thread_identstderrstdouts      r&   run_closure;IPythonKernel._initialize_thread_hooks.<locals>.run_closure  s    << "6*fi00!44 #== 77 JJ @F00< + "$' " s   A= =
B
	B
c                R   > T" U /UQ70 UD6  [         R                  " 5       U l        g r?   )	threading	get_identr  )r9   r$   r%   _threading_Thread__init__s      r&   init_closure<IPythonKernel._initialize_thread_hooks.<locals>.init_closure  s&    %d<T<V<2;2E2E2GD/r(   N)r9   zthreading.Thread)_stdout_stderrr  r  ThreadrunrX   )	r9   r  r  r  r  rM   r  r  r  s	      @@@@@@r&   rw   &IPythonKernel._initialize_thread_hooks  s{    '113 ) 0 0 4 4$-$4$4$=$=!	( 	(0	H %1	!*	r(   c                    US:w  a  g[         R                  " 5        Vs1 s H  o3R                  iM     nnU R                  U R                  4 H  n[        U[        5      (       d  M  UR                  n[        UR                  5       5       H  nXt;  d  M
   Xg	 M     UR                  n[        UR                  5       5       H  nXt;  d  M
   X	 M     M     gs  snf ! [         a     M^  f = f! [         a     M9  f = f)as  Clean parent frames of threads which are no longer running.
This is meant to be invoked by garbage collector callback hook.

The implementation enumerates the threads because there is no "exit" hook yet,
but there might be one in the future: https://bugs.python.org/issue14073

This is a no-op if the `self._stdout` and `self._stderr` are not
sub-classes of `OutStream`.
r   N)r  	enumerater   r  r  rn   r   r  rO  keysrc  r  )	r9   phaser%  threadactive_threadsr   thread_to_parent_headeridentitythread_to_parents	            r&   rz   )IPythonKernel._clean_thread_parent_frames  s     G5>5H5H5JK5J6,,5JK||T\\2F&),,*0*I*I' $%<%A%A%C DH5! 7 A !E $*#;#;  $%5%:%:%< =H5! 0 : !> 3 L  ( ! !  ( ! !s)   CCC/
C,+C,/
C=<C=)r   r  rv   r   r   rm   rY   r7   )r7   )F)TNF)r   rV   )r   r   NNNF)r  zt.Literal['start', 'stop']r%  zdict[str, t.Any])Cr#  
__module____qualname____firstlineno____doc__r   r7   r   r   r`   r   tagr:  r   r[   r
   r3   r   r   r;   r=   r   rB   rF   r   _sys_eval_inputrX   r   r  r_  
help_linksimplementationr   r   implementation_versionsplitlanguage_infor   propertyr   r   r   r   r   r   r   r   r   setterr   r   r   r1  rC  rG  r;  re  rx  r|  r  r  r  r   rw   rz   __static_attributes____classcell__r~   s   @r&   r.   r.   J   s   #HUYZE*+K#'d$ 
cc !
 iD9N%K]3  3 0TBGY  Y&  & UNeO9Bv  +69I9I"19MM
 ,?
 *D
 *D
 /=
 *@
 +F3	
> 
cc? D N$__;;$$&q)#$-#:J:J1:MN%/&M>  
7
* '-  
  
 )6 )6V= L L\
,&
PB 
"
H2@)D!8&+P!/!7G! !r(   r.   c                  ,   ^  \ rS rSrSrU 4S jrSrU =r$ )r   i2  z3DEPRECATED.  An alias for the IPython kernel class.c                X   > SSK nUR                  S[        SS9  [        TU ]  " U0 UD6  g)zDEPRECATED.r   Nz@Kernel is a deprecated alias of ipykernel.ipkernel.IPythonKernelr   )
stacklevel)warningswarnDeprecationWarningrW   rX   )r9   r$   r%   r  r~   s       r&   rX   Kernel.__init__5  s4    N 	 	

 	$)&)r(   rV   )r#  r  r  r  r  rX   r  r  r  s   @r&   r   r   2  s    =	* 	*r(   r   )Hr  
__future__r   r   r   ry   r   rc   r   r  r  typingt
contextlibr   	functoolsr   rk   IPython.corer   IPython.utils.tokenutilr   r   jupyter_client.sessionr	   	traitletsr
   r   r   r   r   r   r   r   r   zmq.eventloop.zmqstreamr   	comm.commr   comm.managerr   compilerr   
eventloopsr   iostreamr   
kernelbaser   
KernelBaser   zmqshellr   IPython.core.interactiveshellr   r  IPython.core.completerr   rL  r    rP  r9  rQ  r'   Lockr+   r)   __annotations__r,   create_commrl   r.   rV   r(   r&   <module>r     s    ' "   	  	  
   %     C 1 b b b -  % & $  , + )=,TR&*#
 7 % ^^
$(! (   ) b!J b!P*] *_  O  ,&+#,s$   C9 &D 9DDDD