Skip to content

Commit

Permalink
fix-reloading (#2692)
Browse files Browse the repository at this point in the history
Co-authored-by: Marc Skov Madsen <masma@orsted.dk>
  • Loading branch information
2 people authored and philippjfr committed Sep 1, 2021
1 parent 9d2b8bf commit 66b235c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion panel/io/reload.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ def record_modules():
def _reload(module=None):
if module is not None:
for module in _modules:
del sys.modules[module]
if module in sys.modules:
del sys.modules[module]
for cb in _callbacks.values():
cb.stop()
_callbacks.clear()
Expand Down

0 comments on commit 66b235c

Please sign in to comment.