Root access for Jupyter/iPython Notebook

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

    0 讨论(0)
  • 2021-02-07 14:13

    I am running the neopixel library from a jupyter notebook.

    The only thing that worked for me was first running the "sudo su" command to move into the root environment and then run "jupyter notebook" (--allow-root alone didn't work for me).

    0 讨论(0)
提交回复
热议问题