jupyter / notebook

Jupyter Interactive Notebook
https://jupyter-notebook.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
11.75k stars 4.99k forks source link

how to use a public jupyter notebook server with different notebook_dir? #4920

Open huwenfeng opened 5 years ago

huwenfeng commented 5 years ago

dear all, I want to integrate notebook to my website. Is it possible to start a public notebook server for many notebook_dir? Maybe I can identify them by different URL , with specified directory path parameters, but don't start new notebook server?

thanks very much!

00Kai0 commented 5 years ago

Hi @huwenfeng , maybe you can have a look about jupyterhub.

bollwyvl commented 5 years ago

Right, as a general principle, it is NEVER SAFE to run a public (as in the whole world) notebook server. JupyterHub, as documented in https://zero-to-jupyterhub.readthedocs.io https://zero-to-jupyterhub.readthedocs.io/en/latest/ is the minimum acceptable protection for remote-code-execution-as-a-service. It expects kubernetes, either on an in-house cluster, or from a commodity cloud vendor.

If you PERSONALLY KNOW the people that use the server, e.g. your coworkers or research group, AND it is behind SSL (or better still a VPN) it CAN be okay to run https://tljh.jupyter.org. It can be used on your own (modern debian) server, Digital Ocean, and other low-cost hosts.

As an absolute last resort, for example if all of the users already have shell access over SSH on the server, it can be fine to run notebook, but even then you would want each of them to run their own notebook server process, as the notebook server is not intended to be used by multiple users.

If you just want to render notebooks, you can also run a local instance of nbviewer.org, but even then you need to be careful.

On Sun, Sep 29, 2019 at 11:55 AM Kerwin Sun notifications@github.com wrote:

Hi @huwenfeng https://github.com/huwenfeng , maybe you can have a look about jupyterhub https://github.com/jupyterhub/jupyterhub.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jupyter/notebook/issues/4920?email_source=notifications&email_token=AAALCRF2ZU3W4SDKHOERNLDQMDFWRA5CNFSM4I3RCVSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD73YKHQ#issuecomment-536315166, or mute the thread https://github.com/notifications/unsubscribe-auth/AAALCRFUN7YQYEZ5T422ZJLQMDFWRANCNFSM4I3RCVSA .