是否可以向Jupyter笔记本授予多个用户? [英] Is it possible to grant multiple users to Jupyter notebook?

查看:449
本文介绍了是否可以向Jupyter笔记本授予多个用户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用jupyter笔记本在EC2中进行一个项目.看来jupyter Notebook不允许同时在其服务器上使用多个ssh,如果其他人要通过该实例连接到jupyter Notebook,则必须注销.是否可以从同一实例对jupyter Notebook进行多重访问?

I am working on a project in an EC2 isntance using jupyter notebook. It seems like jupyter notebook does not allow multiple ssh to its server at the same time, I have to log out if other people want to connect to jupyter notebook through the instance. Is it possible to make multiple access to jupyter notebook from the same instance?

推荐答案

juypter笔记本安装在服务器(在本例中为EC2计算机)上. 如果使用腻子或某些ssh客户端具有凭据,则任何数量的人都可以SSH进入该计算机,这与jupyter笔记本计算机没有任何关系.

The juypter notebook is installed on a server in this case an EC2 machine. Any number of people can SSH into this machine if they have the credentials using putty or some ssh client, this has no connection with jupyter notebook.

(假设SSH端口22已为其他用户打开,并且他们能够连接)

(assuming that the SSH port 22 is open for the other users and they are able to connect)

使用jupyter notebook命令->启动jupyter笔记本时,您将在默认端口(也许是8888)上启动jupyter笔记本的本地实例

When you launch the jupyter notebook using the jupyter notebook command -> you start a local instance of the jupyter notebook on the default port (maybe 8888)

您将拥有此笔记本界面的URL,您可以对其进行处理. 重要说明->这是笔记本的本地实例.它不是公共的,只能以本地用户身份在OS用户名上访问.

you will have a URL for this notebook interface and you can work on it. Important to note -> This is a local instance of your notebook. It is not public and can only be accessed on your OS username as a localhost.

如果其他OS用户运行jupyter notebook命令,他们将在其他端口上获得笔记本的本地版本(默认情况下可能是8889,因为您已经在使用端口号8888)

If other OS users run the jupyter notebook command they will get their local version of the notebook on a different port (maybe 8889 by default as the port number 8888 is already in use by you )

您可以将笔记本设为公开,然后您将获得笔记本的公共URL(serverip:8888或您指定的端口)

You can make your notebook public and then you will get a public URL for your notebook (serverip:8888 or the port you have specified)

此公共链接可以与其他人共享.现在,多个人可以看到您的笔记本,并且可以在笔记本中编辑代码.

This public link can be shared with others. Now multiple people have visibility to your notebook and can edit code in your notebook.

p.s->对于公共笔记本,运行笔记本的端口需要接受来自AWS端的连接.可以在AWS控制台的安全组"选项卡下进行配置

p.s -> for public notebooks the port in which you are running the notebook needs to accept connections from AWS end. This can be configured in AWS console under the security groups tab

这篇关于是否可以向Jupyter笔记本授予多个用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆