在某些情况下需要用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
Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐