MCPcopy Index your code
hub / github.com/ipython/ipython / ExecutionInfo

Class ExecutionInfo

IPython/core/interactiveshell.py:252–302  ·  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

250
251
252class ExecutionInfo:
253 """The arguments used for a call to :meth:`InteractiveShell.run_cell`
254
255 Stores information about what is going to happen.
256 """
257 raw_cell = None
258 transformed_cell = None
259 store_history = False
260 silent = False
261 shell_futures = True
262 cell_id = None
263
264 def __init__(
265 self,
266 raw_cell,
267 store_history,
268 silent,
269 shell_futures,
270 cell_id,
271 transformed_cell=None,
272 ):
273 self.raw_cell = raw_cell
274 self.transformed_cell = transformed_cell
275 self.store_history = store_history
276 self.silent = silent
277 self.shell_futures = shell_futures
278 self.cell_id = cell_id
279
280 def __repr__(self):
281 name = self.__class__.__qualname__
282 raw_cell = (
283 (self.raw_cell[:50] + "..") if len(self.raw_cell) > 50 else self.raw_cell
284 )
285 transformed_cell = (
286 (self.transformed_cell[:50] + "..")
287 if self.transformed_cell and len(self.transformed_cell) > 50
288 else self.transformed_cell
289 )
290 return (
291 '<%s object at %x, raw_cell="%s" transformed_cell="%s" store_history=%s silent=%s shell_futures=%s cell_id=%s>'
292 % (
293 name,
294 id(self),
295 raw_cell,
296 transformed_cell,
297 self.store_history,
298 self.silent,
299 self.shell_futures,
300 self.cell_id,
301 )
302 )
303
304
305class ExecutionResult:

Callers 3

run_codeMethod · 0.90
_run_cellMethod · 0.85
run_cell_asyncMethod · 0.85

Calls

no outgoing calls

Tested by 1

run_codeMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…