Skip to content
GitLab
Explore
Sign in
"gregui/tests/api/views/test_invitation.py" did not exist on "8de0cfbf406ad20c93e6775a578b8268651eb103"
Changes
Page history
Create Reload packages in Python
authored
Aug 19, 2024
by
Illimar.Rekand
Show whitespace changes
Inline
Side-by-side
Reload-packages-in-Python.md
0 → 100644
View page @
7cd94400
from https://stackoverflow.com/a/6946467/11598009
If you have edited a Python class and saved the .py-file, using
`import package`
does not import the saved changes. In order to import these changes without closing and reopen the Python instance, one can use:
`import importlib`
`from importlib import reload`
`reload(package)`
\ No newline at end of file