Root access for Jupyter/iPython Notebook

前端 未结 8 1184
遇见更好的自我
遇见更好的自我 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:00

    Generate config

    root@user# jupyter notebook --generate-config

    root/.jupyter/jupyter_notebook_config.py root@user# cd .jupyter/ root@user:/.jupyter/# gedit jupyter_notebook_config.py Add line in jupyter_notebook_config.py

    c.NotebookApp.allow_root=True

提交回复
热议问题