trungleduc / jupyter_app_launcher

A JupyterLab extension to create custom launcher entries.
https://jupyter-app-launcher.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
53 stars 11 forks source link

Jupyter Hub implementation #32

Closed LuisSoares closed 1 year ago

LuisSoares commented 1 year ago

Great extension! I tried to use it in jupyterhub and it does work very well, but only with the user that has sudo permissions (running the the littlest jupyter hub on ubuntu 18). While the options appear in the launcher of all users, only URLs can be opened, the notebook button is unable to create a notebook (unless is in the user with sudo privileges for which it works flawlessly). Is there any call that requires additional privileges?

trungleduc commented 1 year ago

Hi, for the case of the notebook launcher, the extension will read the content of the notebook and then send it to the frontend to create the notebook file https://github.com/trungleduc/jupyter_app_launcher/blob/fc23909eb26ff05bb0369b436755d01f7ddc8101/jupyter_app_launcher/utils.py#L28-L36.

Maybe normal users do not have the right to read your notebook file.

LuisSoares commented 1 year ago

I think it was an issue with the path I was using, changing it to the full path fixed it! Thanks for the prompt reply!