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

Method run_cell

IPython/lib/demo.py:447–450  ·  view source on GitHub ↗

Execute a string with one or more lines of code

(self,source)

Source from the content-addressed store, hash-verified

445 sys.stdout.flush()
446
447 def run_cell(self,source):
448 """Execute a string with one or more lines of code"""
449
450 exec(source, self.user_ns)
451
452 def __call__(self,index=None):
453 """run a block of the demo.

Callers 15

__call__Method · 0.95
interactMethod · 0.45
store_or_executeMethod · 0.45
rerun_pastedMethod · 0.45
run_cellMethod · 0.45
process_input_linesMethod · 0.45
test_display_availableFunction · 0.45
test_magic_rerunFunction · 0.45
test_calling_run_cellFunction · 0.45
test_output_displayedFunction · 0.45
test_output_quietFunction · 0.45

Calls

no outgoing calls