如何使用JupyterHub使多个用户访问同一Jupyterlab服务器?
我正在将木星笔记本电脑/实验室(通过jupyterhub)集成到其他应用程序中。
目标:
目标是允许用户从应用程序(使用JupyterHub API)创建jupyter笔记本服务器/实验室服务器,并因此将应用程序功能扩展到Python的功能。
据我所知,通过实现一个自定义身份验证器,该自定义身份验证器集成了应用程序登录系统并使用JupyterHub API创建服务器。
问题:
一个不错的功能是为应用程序访问相同的Jupyter笔记本电脑/实验室(服务器)的多个用户。但是,我找不到一种方法可以在用户或管理权限之间共享服务器。
jupyterhub中有一个groups
功能,但是它的记录很差...而且我真的不明白它在做什么。
我会感谢JupyterHub是否可以(根本可以)寻求任何帮助?
I am working a Jupiter Notebook/ Lab (via JupyterHub) integration into an other application.
Goal:
The goal is to allow users to create a Jupyter Notebook/ Lab server from the application (using the JupyterHub API) and therefore extend the applications capabilities with the power of python.
As far as I know this would be possible by implementing a custom Authenticator that integrates the applications login system and create the servers using the JupyterHub API.
Problem:
A nice feature would be to give multiple users of the application access to the same Jupyter Notebook/ Lab (server). However, I cannot find a way to share servers across users or mange permissions to servers.
There is a Groups
feature in JupyterHub, but it is very poorly documented... and I don't really understand what it is doing.
I would be grateful for any help, whether this is (at all) possible with JupyterHub?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要使用
jupyterhub生成JuputerHub配置文件 - generate -config -f/etc/jupyterhub/jupyterhub_conf.py
。然后编辑该配置文件以包含该行:c.spawner.notebook_dir =/path/to/common/directory
。您还需要配置其他东西以使其正常工作。使用:
jupyterhub -f/etc/jupyterhub/jupyterhub_conf.py&
,或者更好地作为服务。You need to generate the JuputerHub configuration file, using
jupyterhub --generate-config -f /etc/jupyterhub/jupyterhub_conf.py
. Then edit that config file to include the line:c.Spawner.notebook_dir=/path/to/common/directory
. You will need to configure other things also to make it work properly.Run the JupyterHub with:
jupyterhub -f /etc/jupyterhub/jupyterhub_conf.py &
, or better, as a service.