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

Method run_cell

IPython/lib/demo.py:446–449  ·  view source on GitHub ↗

Execute a string with one or more lines of code

(self,source)

Source from the content-addressed store, hash-verified

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

Callers 6

__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

Calls

no outgoing calls

Tested by

no test coverage detected