I've found another post that seems to address the case for importing a single object from a given module, e.g.:
from module_abc import func_xyz
However, what's the proper way to reload all the objects if they were imported using *
(with the assumption that this is done in a jupyter notebook if that matters)?:
from module_abc import *
From what I've found, the library to use is importlib
. According to their docs, they say that
one way around this is to re-execute the from statement, another is to use import and qualified names (module.name) instead.
Tried both ways. The former way doesn't work if you're trying to reload the object dynamically in a jupyter notebook. The latter doesn't actually address this question directly.