Format: application/x-python-code
⬇ Download File (2.0 KB)
   1  o
   2  
   3  ��h��@s8dZGdd�de�ZGdd�de�ZGdd�de�ZdS)zs
   4  Autocall capabilities for IPython.core.
   5  
   6  Authors:
   7  
   8  * Brian Granger
   9  * Fernando Perez
  10  * Thomas Kluyver
  11  
  12  Notes
  13  -----
  14  c@s*eZdZdZdZdZddd�Zdd�ZdS)	�IPyAutocallz� Instances of this class are always autocalled
  15      
  16      This happens regardless of 'autocall' variable state. Use this to
  17      develop macro-like mechanisms.
  18      NTcCs
  19  ||_dS�N��_ip��self�ip�r�Kc:\Users\shubh\Videos\agent\nova\Lib\site-packages\IPython/core/autocall.py�__init__'s
  20  zIPyAutocall.__init__cCs
  21  ||_dS)z�Will be used to set _ip point to current ipython instance b/f call
  22  
  23          Override this method if you don't want this to happen.
  24  
  25          Nrrrrr	�set_ip*s
  26  zIPyAutocall.set_ipr)�__name__�
  27  __module__�__qualname__�__doc__r�rewriter
  28  rrrrr	rs
  29  rc@seZdZdZdZdd�ZdS)�ExitAutocallz�An autocallable object which will be added to the user namespace so that
  30      exit, exit(), quit or quit() are all valid ways to close the shell.FcCs|j��dSr)r�ask_exit)rrrr	�__call__8szExitAutocall.__call__N)rr
  31  rrrrrrrr	r3src@seZdZdZddd�ZdS)�ZMQExitAutocallz�Exit IPython. Autocallable, so it needn't be explicitly called.
  32      
  33      Parameters
  34      ----------
  35      keep_kernel : bool
  36        If True, leave the kernel alive. Otherwise, tell the kernel to exit too
  37        (default).
  38      FcCs||j_|j��dSr)rZkeepkernel_on_exitr)rZkeep_kernelrrr	rDszZMQExitAutocall.__call__N)F)rr
  39  rrrrrrr	r;srN)r�objectrrrrrrr	�<module>s