小编use*_*390的帖子

Jupyter/iPython Notebook的Root访问权限

我正在尝试在iPython/Jupyter笔记本中使用bash内核,但我需要在笔记本本身内进行sudo访问.

我试图$ sudo jupyter notebook以root身份运行笔记本,但这只会返回:

$ jupyter: 'notebook' is not a Jupyter command
Run Code Online (Sandbox Code Playgroud)

所以,我离开了跑步$ jupyter notebook(除非有办法以root身份运行Jupyter笔记本).

我也不能su root在笔记本本身做,因为这需要输入,笔记本不会让我给出一个输入.

最后,据称--allow-rootJupyter笔记本有一个选项:http://jupyter-notebook.readthedocs.io/en/latest/config.html

但是,看起来--allow_root不再是一种选择.(我尝试通过添加来修改配置文件NotebookApp.allow_root=True,但这不起作用.)

有什么想法吗?也许我做错了什么?

bash ipython ipython-notebook jupyter-notebook

9
推荐指数
3
解决办法
1万
查看次数