|
|
|
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 |