Skip to content

Conversation

@lonetwin
Copy link
Owner

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

reload command (default: \r <arg>)

- 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants