Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HTE closed-loop documentation UiB
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ii
iCat4Bio
HTE closed-loop documentation UiB
Wiki
Reload packages in Python
Changes
Page history
New page
Templates
Clone repository
Create Reload packages in Python
authored
7 months ago
by
Illimar.Rekand
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Reload-packages-in-Python.md
+13
-0
13 additions, 0 deletions
Reload-packages-in-Python.md
with
13 additions
and
0 deletions
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
This diff is collapsed.
Click to expand it.