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

Method reset

IPython/lib/demo.py:337–341  ·  view source on GitHub ↗

Reset the namespace and seek pointer to restart the demo

(self)

Source from the content-addressed store, hash-verified

335 self.reset()
336
337 def reset(self):
338 """Reset the namespace and seek pointer to restart the demo"""
339 self.user_ns = {}
340 self.finished = False
341 self.block_index = 0
342
343 def _validate_index(self,index):
344 if index<0 or index>=self.nblocks:

Callers 15

reloadMethod · 0.95
replyMethod · 0.45
reset_bufferFunction · 0.45
reset_search_bufferFunction · 0.45
reloadMethod · 0.45
setupMethod · 0.45
test_historyFunction · 0.45
test_macroFunction · 0.45
test_macro_runFunction · 0.45

Calls

no outgoing calls

Tested by 14

test_historyFunction · 0.36
test_macroFunction · 0.36
test_macro_runFunction · 0.36
test_saveFunction · 0.36
test_save_with_no_argsFunction · 0.36
test_can_pickleMethod · 0.36
test_drop_by_idMethod · 0.36