-
Notifications
You must be signed in to change notification settings - Fork 121
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
does not install with conda, but with pip #43
Comments
Same problem. I get a blank nbextensions config tab. pip installation didn't work for me. |
@pybokeh there was also no error messages or anything with pip install? Can you show us what you did? |
I get no error messages at all. It even says "OK" when validation message is echoed when activating the extension. I'm on Windows 7 machine at work with no admin rights. I create 2 environment variables so that I can use the --user flag when installing the extensions and extension configurator and then activate my virtual environment using conda: I install the notebook extensions with pip: I install the notebook extensions configurator with pip: I confirm the extensions are installed at the location per JUPYTER_DATA_DIR environment variable by navigating to: Then I launch jupyter notebook via "jupyter notebook" at command prompt. I open one of my notebooks, go to "Edit", then choose "nbextensions config" item. A new browser tab is generated, but it is not showing anything. |
Right, this sounds like an issue with the configurator's enable, or possibly with the env vars. I take it you have the same environment variables set while running the notebook server, so that it looks for config in the right place? If you run the
Command with the |
Yes, my environment variables were set prior to running the jupyter notebook server. Here is output from enabling configurator with --debug flag:
Here is output from running jupyter notebook with --debug flag:
|
Hmm, well that output certainly looks like it's all working as expected, the configurator certainly logs its setup, anyway. I note that you're using a non-default base_url, but that shouldn't matter, as it works in tests. Does the nbextensions tab appear in the tree/browser view? What's the URL that the menu item redirects you to (which gives the blank page you mentioned)? Is there anything it the browser JavaScript console on the blank page? |
@jcb91 Oh wow I totally forgot that there is an existing "Nbextensions" tab which points to URL: It's the one in the "Edit" menu on an opened notebook that provides a different URL I created a clean, separate virtual environment and used the --sys-prefix flag instead of the --user flag and I am still getting same problem, so I don't think it is anything unique to my machine or setup. |
Hmm, ok. Anything in the javascript console on the blank |
@IreneCrisologo, when you mention
Do you mean the tab on the tree page? Is there any output from the install process at all? I'm struggling to think of a reason this might happen 😕 |
@jcb91 Sorry I am not a developer or have extensive web development knowledge and so I am not sure how to best share the output of my browser's web console. Below is copy/paste of the console output with some manual formatting I did, there were 7 entries:
|
@jcb91 yes the tab on the tree page and the option on the edit tab never appeared. The output from the install process didn't show any error or any sign of error, so I really thought it pushed through. I tried installing it while jupyter is open, and it didn't appear, so i tried installing it after closing all jupyter notebooks. Still didn't appear. Tried installing after restarting laptop, still didn't appear. I saw in the issues list in jupyter nbextensions github saying someone had a problem installing it with conda and tried using pip instead. I had the same problem, so I installed my nbextensions with pip. When conda didn't work for the nbextensions configurator, i went with pip again. .... wait ... could that be the reason? Because I installed the nbextensions with pip, the configurator will only work when installed using pip? |
No problem. Your version is fine; I usually just cut-and-paste without editing into a markdown code block. Unfortunately, I can't see anything in that that seems like a reason for the whole page to fail to load. I must admit I don't recognise the |
@IreneCrisologo that certainly sounds like it should have installed ok 😞
Not really. The nbextensions should install the configurator as a dependency anyway, regardless of if that's through pip or conda. Both should work regardless of what combination of pip/conda was used to install them. Though at the moment contrib_nbextensions may fail to install its config/files while complaining about running notebook servers, which may or may not actually be running, the configurator doesn't perform these checks, so shouldn't be affected. |
This (the standalone /nbextensions url not working correctly) appears to be a bug introduced by Jupyter 5.1.0's adoption of i18n translation breaking the standalone page somehow. Not entirely sure how, as yet, but will investigate... |
This should hopefully be fixed by #44, which is incorporated into the latest conda & pip versions (0.2.8). As always, please reopen if it's still a problem after upgrading! |
Hi,
I tried installing the extensions configurator using
conda install -c conda-forge jupyter_nbextensions_configurator
but it won't install, but also won't give any error messages. It just pushes through, but the configuration tab never appeared.I then tried installing using
pip install jupyter_nbextensions_configurator
thenjupyter nbextensions_configurator enable --user
which worked.The text was updated successfully, but these errors were encountered: