I am trying to use the bash core in the iPython / Jupyter notebook, but I need sudo access in the notebook itself.
I tried $ sudo jupyter notebookto start the laptop as root, but this only returns:
$ jupyter: 'notebook' is not a Jupyter command
So, I still have it running $ jupyter notebook(unless there is a way to run Jupyter notebook as root).
I also can not do su rootin the notebook itself, because it requires input, and the notebook does not allow me to type.
Finally, there is supposedly a --allow-rootJupyter notebook: http://jupyter-notebook.readthedocs.io/en/latest/config.html
However, it seems that it is --allow_rootno longer an option. (I tried to modify the configuration file by adding NotebookApp.allow_root=True, but this does not work.)
Any ideas guys? Maybe I'm doing something wrong?
source
share