Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lazy-import does not work with autoreload #13

Open
douglasmacdonald opened this issue Feb 25, 2019 · 1 comment
Open

lazy-import does not work with autoreload #13

douglasmacdonald opened this issue Feb 25, 2019 · 1 comment

Comments

@douglasmacdonald
Copy link

This might be of interest as a limitation that you might considder documenting.

Trying to use autoreload in a Jupyter notebook then lazy-import does not work...

%load_ext autoreload
%autoreload 2

...

Error in callback <bound method AutoreloadMagics.post_execute_hook of <autoreload.AutoreloadMagics object at 0x0000000004CE1908>> (for post_execute):

...

ImportError: ... attempted to use a functionality that requires module ..., but it couldn't be loaded. Please install features and retry.
@dattran2346
Copy link

%autoreload 2 will reload import module everytime before the cell is run, so include %aimport -features may help

Ref: https://ipython.org/ipython-doc/3/config/extensions/autoreload.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants