I was wondering if there is a way to restart the ipython kernel without closing it, like the kernel restart function that exists in the notebook. I tried %reset
but that doesn't seem to clear the imports.
I was wondering if there is a way to restart the ipython kernel without closing it, like the kernel restart function that exists in the notebook. I tried %reset
but that doesn't seem to clear the imports.
Even though it would be handy if %reset
would clear the namespace and the cache for the imports (as in the notebook) one can explicitly reload a previously imported module using importlib.reload
in python3.4 or imp.reload
in python3.0-3.3 (and if needed reset the kernel in a second step).