【发布时间】:2017-05-28 03:20:47
【问题描述】:
我正在尝试在 iPython/Jupyter 笔记本中使用 bash 内核,但我需要在笔记本本身中进行 sudo 访问。
我已经尝试$ sudo jupyter notebook 以 root 身份运行笔记本,但这只会返回:
$ jupyter: 'notebook' is not a Jupyter command
所以,我只能运行 $ jupyter notebook(除非有办法以 root 身份运行 Jupyter notebook)。
我也不能在笔记本本身中执行su root,因为这需要输入,而笔记本不允许我输入。
最后,据称 Jupyter 笔记本有一个 --allow-root 选项:
http://jupyter-notebook.readthedocs.io/en/latest/config.html
但是,--allow_root 似乎不再是一个选项。 (我尝试通过添加NotebookApp.allow_root=True 来修改配置文件,但这不起作用。)
有什么想法吗?也许我做错了什么?
【问题讨论】:
-
这里有同样的问题。无法在 jupyter notebook 中使用 snap.py
-
还在等待解决方案...?
标签: bash ipython ipython-notebook jupyter-notebook