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

Method run_code

tests/test_zzz_autoreload.py:74–88  ·  view source on GitHub ↗
(self, code)

Source from the content-addressed store, hash-verified

72 traceback.print_exc()
73
74 def run_code(self, code):
75 transformed_cell = self.input_transformer_manager.transform_cell(code)
76 self.events.trigger(
77 "pre_run_cell",
78 ExecutionInfo(
79 raw_cell=code,
80 transformed_cell=code,
81 store_history=False,
82 silent=False,
83 shell_futures=False,
84 cell_id=None,
85 ),
86 )
87 exec(code, self.user_ns)
88 self.auto_magics.post_execute_hook()
89
90 def push(self, items):
91 self.ns.update(items)

Calls 4

ExecutionInfoClass · 0.90
triggerMethod · 0.80
post_execute_hookMethod · 0.80
transform_cellMethod · 0.45

Tested by

no test coverage detected