You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does anyone know how to engage autoreload functionality while using importnb package?
Autoreload is the automatic reloading of imported content when that content is altered. This functionality is available in Jupyter. For example, to use autoreload in Jupyter, enter the following in a Jupyter cell:
%load_extautoreload%autoreload2importabcabc.foo()
When content in abc.py is changed, abc is re-imported and the changes are effected in the Jupyter notebook.
I understand that importnb is compatible with importlib's reload (see README). Disappointingly, I've tried pairing it with autoreload in a Jupyter notebook to observe that notebooks imported via importnb are not affected.
Autoreload has no effect on importnb's import of abc.ipynb.
%load_extautoreload# No effect on the import of abc.ipynb%autoreload2# No effect on the import of abc.ipynbfromimportnbimportNotebookfromimportlibimportreloadwithNotebook():
importabcassertabc.__file__.endswith('.ipynb')
reload(abc)
importabcabc.foo()
The text was updated successfully, but these errors were encountered:
Does anyone know how to engage autoreload functionality while using
importnb
package?Autoreload is the automatic reloading of imported content when that content is altered. This functionality is available in Jupyter. For example, to use autoreload in Jupyter, enter the following in a Jupyter cell:
When content in
abc.py
is changed,abc
is re-imported and the changes are effected in the Jupyter notebook.I understand that
importnb
is compatible withimportlib
's reload (see README). Disappointingly, I've tried pairing it with autoreload in a Jupyter notebook to observe that notebooks imported viaimportnb
are not affected.Autoreload has no effect on
importnb
's import ofabc.ipynb
.The text was updated successfully, but these errors were encountered: