Root access for Jupyter/iPython Notebook

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

    The solution as described here. Is to use

    sudo -E env "PATH=$PATH" jupyter notebook
    

    Basically the binary to call jupyter notebook is in the user's PATH variable, but not for root.

    Best regards.

提交回复
热议问题