Root access for Jupyter/iPython Notebook Root access for Jupyter/iPython Notebook bash bash

Root access for Jupyter/iPython Notebook


Just login as root, then do the following command to start the notebook :

jupyter notebook --allow-root


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.


Add c.NotebookApp.allow_root=True from the root configuration files. That you don't need ask to allow-rootevery time then you start the notebook.

Edit:

Before edit the configuration file you need to run jupyter notebook --generate-config as root to make the file.