pythonrc
pythonrc copied to clipboard
Exciting new command - reload !
reload command (default: \r )
-
If argument is a module, simply call
importlib.reload(<arg>). -
If argument is not a module, try hard to re-execute the (presumably updated) source code in the namespace of the object, in effect reloading it.
Would love to receive feedback on whether this works well or breaks stuff.
The idea was inspire from reading the description of reloadr