pythonrc icon indicating copy to clipboard operation
pythonrc copied to clipboard

Exciting new command - reload !

Open lonetwin opened this issue 4 years ago • 0 comments

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

lonetwin avatar Feb 10 '21 00:02 lonetwin