Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ipython/ipython
/ cleanup
Method
cleanup
IPython/core/interactiveshell.py:3787–3788 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
3785
self.hooks.shutdown_hook()
3786
3787
def
cleanup(self):
3788
self.restore_sys_module_state()
3789
3790
3791
# Overridden in terminal subclass to change prompts
Callers
2
test_get_ipython_dir_3
Function · 0.45
tearDown
Method · 0.45
Calls
1
restore_sys_module_state
Method · 0.95
Tested by
2
test_get_ipython_dir_3
Function · 0.36
tearDown
Method · 0.36