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

Method reset

IPython/lib/demo.py:336–340  ·  view source on GitHub ↗

Reset the namespace and seek pointer to restart the demo

(self)

Source from the content-addressed store, hash-verified

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

Callers 5

reloadMethod · 0.95
reset_bufferFunction · 0.45
reset_search_bufferFunction · 0.45
reloadMethod · 0.45
setupMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected