root权限使用jupyter notebook

阅读 105

2022-01-26

在某些情况下需要用root权限打开jupyter notebook,譬如我们要在jupyter notebook里面运行的代码需要root权限才能访问设备的时候。
Root access for Jupyter/iPython Notebook

Basically the binary to call jupyter notebook is in the user's PATH variable, but not for root.
sudo -E env "PATH=$PATH" jupyter notebook --allow-root

精彩评论(0)

0 0 举报