Root access for Jupyter/iPython Notebook

前端 未结 8 1188
遇见更好的自我
遇见更好的自我 2021-02-07 13:50

I\'m trying to use the bash kernel in iPython/Jupyter notebook, but I need sudo access within the notebook itself.

I\'ve tried $ sudo jupyter notebook to ru

8条回答
  •  执念已碎
    2021-02-07 14:02

    Add c.NotebookApp.allow_root=True from the root configuration files. That you don't need ask to allow-rootevery time then you start the notebook.

    Edit:

    Before edit the configuration file you need to run jupyter notebook --generate-config as root to make the file.

提交回复
热议问题