Skip to content

Instantly share code, notes, and snippets.

@miracleyoo
Last active March 5, 2020 16:55
Show Gist options
  • Save miracleyoo/7538295228215114b548db8417254273 to your computer and use it in GitHub Desktop.
Save miracleyoo/7538295228215114b548db8417254273 to your computer and use it in GitHub Desktop.
[Reload Python Module] #python #jn
#For Python 2.x
reload(foo)
#For Python 3.x
import importlib
import foo #import the module here, so that it can be reloaded.
importlib.reload(foo)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment