TenjintShell.clear_main_mod_cache¶
-
TenjintShell.
clear_main_mod_cache
()¶ Clear the cache of main modules.
Mainly for use by utilities like %reset.
Examples
In [15]: import IPython
In [16]: m = _ip.new_main_mod(IPython.__file__, ‘IPython’)
In [17]: len(_ip._main_mod_cache) > 0 Out[17]: True
In [18]: _ip.clear_main_mod_cache()
In [19]: len(_ip._main_mod_cache) == 0 Out[19]: True