Open paulmadejong opened 6 years ago
Hi!
In brief, I think you've follewed the correct process and aren't doing anything obviously wrong. Assuming that the jupyterhub notebook that you're running is also pip-installed with the user flag, it should work ok. If not, you may need to set the paths a little differently. It may equally be that you've been bitten by a bug or quirk of either the setup process, or perhaps your company machine setup.
It seems as though the jupyter_nbextensions_configurator
package is not importable in the python environment from which the notebook server is running. You mention that you've added ~/.local/bin
to the path, but it's the python source package that needs to be available - is that under bin
? I can't recall offhand, but suspect it may be in .local/lib
or something like that. It's also likely that it's the PYTHONPATH variable (where python looks for packages) that you need to set, rather than the PATH (where shell looks for executables). Relevant information would include output of
which jupyter
which jupyter-notebook
Thanks for getting back to me. Please find below the outputs of several of the requested commands:
[bin]$ which jupyter
/usr/bin/jupyter
[bin]$ which jupyter-notebook
/usr/bin/jupyter-notebook
[bin]$ echo $PYTHONPATH
<empty>
Jupyter itself was pre-isntalled but nbextensions was installed indeed with the --user flag and hence jupyter_nbextensions_configurator resides in :
~/.local/lib/python3.6/site-packages
Should I add ~/.local/
to PYTHONPATH?
Ok, in that case, I think you should add ~/.local/lib/python3.6/site-packages
to PYTHONPATH (pythonpath should point to the root of the import tree, in order to get namespaces correct).
I added ~/.local/lib/python3.6/site-packages
to PYTHONPATH as suggested but still at startup I get the error and also when enabling the configurator, the X is nb_extensions_configurator importable still appears.
Jupyter came pre-installed on my work machine (on which i do not have root access).
I've installed the nbextensions using:
pip3 install --user jupyter_contrib_nbextensions
andjupyter contrib nbextensions install --user
and manully added the ~/.local/bin to my PATH environment variable.So far so good, but when launching jupyter, i get the following error:
Disabling the configurator resolves the issue, but i'd like it enabled which in turn yield the following error:
What am I doing wrong?
I'm running jupyter version 4.1.0