Open NumesSanguis opened 5 years ago
Hi @NumesSanguis, the hub_prefix
is a property of the SingleUserNotebookApp
[1]. You are meant to override it using standard Jupyter config [2]. I'm not sure about the correct value for that property, that question is better asked on the JupyterHub discourse.
[1] https://github.com/jupyterlab/jupyterlab/blob/master/jupyterlab/labhubapp.py#L25 [2] https://jupyter-notebook.readthedocs.io/en/stable/config_overview.html
cf https://github.com/jupyterlab/jupyterlab/issues/6428, where we're absorbing this extension into JupyterLab itself.
Describe the bug After installing jupyterlab-hub, trying to set
page_config.json
, removing it, JupyterHub returns a404 : Not Found
. Terminal output states ajson.decoder.JSONDecodeError: Expecting ',' delimiter: line 2 column 38 (char 39)
--> Realize JSON is wrongly formatted, because comments not allowed just before posting issue --> Still don't know correct path to JupyterHubTo Reproduce Steps to reproduce the behavior: Note:
/opt/miniconda3
(system user account) with:conda install -c conda-forge jupyterhub
conda install jupyterlab
/etc/jupyterhub/
Install jupyterlab-hub:
jupyter labextension install @jupyterlab/hub-extension
Create the
page_config.json
file at:/opt/miniconda3/share/jupyter/lab/settings/page_config.json
Insert
Save and exit
Start JupyterHub:
Find Configuration Panel button in menu and click it
404 Page not found error:
rm /opt/miniconda3/share/jupyter/lab/settings/page_config.json
JupyterHub lab starts again, but no Configuration Panel menu entree
Create
/opt/miniconda3/share/jupyter/lab/settings/page_config.json
again, but withStart JupyterHub again
404 error
Remove
page_config.json
and it works again.About to submit issue, realize in Preview that JSON is wrongly formatted and
# comments
are not allowed.Still don't know the correct JupyterHub path. Not working:
/etc
/etc/jupyterhub
/opt/miniconda3/bin/jupyter
Expected behavior
page_config.json
is broken. Instead it breaks the whole JupyterHub.hub_prefix
is incorrectly set and jupyterlab-hub won't work.Suggestions
README.md
to give clearer instructions. E.g. how to find your JupyterHub sub-directory.page_config.json
creation with the correct path set / support for how to set it, when clicked onHub --> Controlpanel
when JupyterHub cannot be foundScreenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context Add any other context about the problem here.
If available, please include the following details:
Troubleshoot Output
Command Line Output
Browser Output