コード例 #1
0
 def __init__(self, shell=None):
     Configurable.__init__(self, config=shell.config)
     self._generate_script_magics()
     Magics.__init__(self, shell=shell)
     self.job_manager = BackgroundJobManager()
     self.bg_processes = []
     atexit.register(self.kill_bg_processes)
コード例 #2
0
ファイル: script.py プロジェクト: pykomke/Kurz_Python_KE
 def __init__(self, shell=None):
     Configurable.__init__(self, config=shell.config)
     self._generate_script_magics()
     Magics.__init__(self, shell=shell)
     self.job_manager = BackgroundJobManager()
     self.bg_processes = []
     atexit.register(self.kill_bg_processes)
コード例 #3
0
	def __init__(self, shell):
		Configurable.__init__(self, config=shell.config)
		Magics.__init__(self, shell=shell)

		# Add ourself to the list of module configurable via %config
		self.shell.configurables.append(self)

		self.rewriter = Rewriter()
コード例 #4
0
ファイル: extension.py プロジェクト: helgag/myria-python
        def __init__(self, shell):
            Configurable.__init__(self, config=shell.config)
            Magics.__init__(self, shell=shell)

            MyriaRelation.DefaultConnection = MyriaConnection(
                rest_url=self.rest_url,
                execution_url=self.execution_url,
                timeout=self.timeout)

            self.shell.configurables.append(self)
コード例 #5
0
ファイル: extension.py プロジェクト: tomerk/myria-python
        def __init__(self, shell):
            Configurable.__init__(self, config=shell.config)
            Magics.__init__(self, shell=shell)

            MyriaRelation.DefaultConnection = MyriaConnection(
                rest_url=self.rest_url,
                execution_url=self.execution_url,
                timeout=self.timeout)

            self.shell.configurables.append(self)
コード例 #6
0
 def __init__(self, shell=None):
     Magics.__init__(self, shell)
     Configurable.__init__(self, config=shell.config)
コード例 #7
0
ファイル: storemagic.py プロジェクト: AlfiyaZi/ipython
 def __init__(self, shell):
     Configurable.__init__(self, config=shell.config)
     Magics.__init__(self, shell=shell)
     self.shell.configurables.append(self)
     if self.autorestore:
         restore_data(self.shell)
コード例 #8
0
ファイル: linter.py プロジェクト: mattvonrocketstein/smash
 def __init__(self, config, cmd_exec=None):
     if cmd_exec == None:
         cmd_exec = os.system
     self.cmd_exec = cmd_exec
     Configurable.__init__(self, config=config)
     self.init_logger()
コード例 #9
0
 def __init__(self, shell):
     Configurable.__init__(self, config=shell.config)
     Magics.__init__(self, shell=shell)
     self.shell.configurables.append(self)
     if self.autorestore:
         restore_data(self.shell)
コード例 #10
0
ファイル: ipycache.py プロジェクト: ihrke/ipycache
 def __init__(self, shell=None):
     Magics.__init__(self, shell)
     Configurable.__init__(self, config=shell.config)
コード例 #11
0
ファイル: magic.py プロジェクト: bopopescu/SourceCodeReading
    def __init__(self, shell):
        Configurable.__init__(self, config=shell.config)
        Magics.__init__(self, shell=shell)

        # Add ourself to the list of module configurable via %config
        self.shell.configurables.append(self)
コード例 #12
0
 def __init__(self, shell=None):
     Configurable.__init__(self, config=shell.config)
     self._generate_script_magics()
     Magics.__init__(self, shell=shell)
     self.job_manager = BackgroundJobManager()
コード例 #13
0
ファイル: magic.py プロジェクト: crabhi/ipython-cypher
 def __init__(self, shell):
     Configurable.__init__(self, config=shell.config)
     Magics.__init__(self, shell=shell)
     # Add ourself to the list of module configurable via %config
     self.shell.configurables.append(self)
     self._legal_cypher_identifier = re.compile(r'^[A-Za-z0-9#_$]+')
コード例 #14
0
ファイル: script.py プロジェクト: kbrooks/ipython
 def __init__(self, shell=None):
     Configurable.__init__(self, config=shell.config)
     self._generate_script_magics()
     Magics.__init__(self, shell=shell)
     self.job_manager = BackgroundJobManager()
コード例 #15
0
ファイル: imongo.py プロジェクト: Bloodevil/ipython_mongo
 def __init__(self, shell):
     Configurable.__init__(self, config=shell.config)
     Magics.__init__(self, shell=shell)
     self.shell.configurables.append(self)
コード例 #16
0
ファイル: imongo.py プロジェクト: Bloodevil/ipython_mongo
 def __init__(self, shell):
     Configurable.__init__(self, config=shell.config)
     Magics.__init__(self, shell=shell)
     self.shell.configurables.append(self)