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

Incompatible with JupyterLab #63

Closed
rjdoubleu opened this issue Dec 31, 2019 · 2 comments
Closed

Incompatible with JupyterLab #63

rjdoubleu opened this issue Dec 31, 2019 · 2 comments

Comments

@rjdoubleu
Copy link

rjdoubleu commented Dec 31, 2019

I have verified compatibility of the library in Jupyter Notebooks but for some reason when I use JupyterLab on the same kernel I receive the following:

In Cell:
import scrapbook as sb
dir(sb)

Out Cell:
['__doc__',
'__file__',
'__loader__',
'__name__',
'__package__',
'__path__',
'__spec__']

I am working in an Anaconda environment using the following installation method:

In Cell:
!pip install --upgrade nteract-scrapbook

@MSeal
Copy link
Member

MSeal commented Jan 3, 2020

Was the install the first cell of the notebook? Did you try restarting the kernel after installing? Is pip installing into your conda environment?

Installing or upgrading packages after they're already loaded into memory will oftentimes result in a failure. Sometimes other code will import packages in the background which causes the same issue. Try install the dependency before you launch the kernel or restart after. If you do install from the notebook I would highly recommend using the magics described here: https://jakevdp.github.io/blog/2017/12/05/installing-python-packages-from-jupyter/ instead of !pip calls. See if looking into those things fixes the issue for you.

@rjdoubleu
Copy link
Author

I've resolved the issue: I simply ran !pip install scrapbook earlier in my script and the import statement was pointing to that package.

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