MCPcopy Create free account
hub / github.com/ipython/ipython / ExecutionInfo

Class ExecutionInfo

IPython/core/interactiveshell.py:284–305  ·  view source on GitHub ↗

The arguments used for a call to :meth:`InteractiveShell.run_cell` Stores information about what is going to happen.

Source from the content-addressed store, hash-verified

282
283
284class ExecutionInfo(object):
285 """The arguments used for a call to :meth:`InteractiveShell.run_cell`
286
287 Stores information about what is going to happen.
288 """
289 raw_cell = None
290 store_history = False
291 silent = False
292 shell_futures = True
293
294 def __init__(self, raw_cell, store_history, silent, shell_futures):
295 self.raw_cell = raw_cell
296 self.store_history = store_history
297 self.silent = silent
298 self.shell_futures = shell_futures
299
300 def __repr__(self):
301 name = self.__class__.__qualname__
302 raw_cell = ((self.raw_cell[:50] + '..')
303 if len(self.raw_cell) > 50 else self.raw_cell)
304 return '<%s object at %x, raw_cell="%s" store_history=%s silent=%s shell_futures=%s>' %\
305 (name, id(self), raw_cell, self.store_history, self.silent, self.shell_futures)
306
307
308class ExecutionResult(object):

Callers 2

_run_cellMethod · 0.85
run_cell_asyncMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected