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 run the notebook as root, but that only returns:
$ jupyter: 'notebook' is not a Jupyter command
So, I'm left with running $ jupyter notebook
(unless there's a way to run Jupyter notebook as root).
I also can't do su root
in the notebook itself because that requires an input and the notebook won't let me give an input.
Finally, there is allegedly an --allow-root
option for Jupyter notebook:
http://jupyter-notebook.readthedocs.io/en/latest/config.html
However, it looks like --allow_root
is no longer an option. (I've tried modifying the config file by adding NotebookApp.allow_root=True
, but that doesn't work.)
Any ideas guys? Maybe I'm doing something wrong?