如何使用JupyterHub使多个用户访问同一Jupyterlab服务器?

发布于 2025-02-09 06:58:38 字数 421 浏览 0 评论 0原文

我正在将木星笔记本电脑/实验室(通过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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

猫腻 2025-02-16 06:58:38

您需要使用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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文