Python Forum

Full Version: Run jupyter notbook in background
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
OS Ubuntu linux

I am trying to get jupyter notebook to run in the background.

I first tried:
jupyter notebook &
but it ignores it and runs the output in the terminal.

This works to an extent...
jupyter notebook &> /dev/null &
as it kills the output. It would seem to also put in the background on normal processes, but does not work as expected with jupyter notebook. If you kill the terminal at any point, for example, you are unable to create a new notebook and just get back error (thats all its says).

The only way i am able to berid of any terminal while using jupyter notebook is to start the process in a tmux session and detach. Which seems kinda ridiculous to have to do if you do not want the output and terminal


Or is there an alternative to jupyter notebook? I am only using it to display tables better with pandas. I am not sure of whether other IDE's are capable of similar actions?
I've been using jupyterlab, It has a lot more to offer, and includes notebook. I don't know if it will help with running in background.
tps://blog.jupyter.org/jupyterlab-is-ready-for-users-5a6f039b8906
JupyterLab has many more option,i have used JupyterLab for a while now.
Jupyter Lab: Evolution of the Jupyter Notebook
Quote:JupyterLab terminal provides full support for system shells (bash, tsch, etc.) on Mac/Linux and PowerShell on Windows.
We can run anything in our system shell with a terminal, including programs such as vim or emacs.

metulburr Wrote:I am not sure of whether other IDE's are capable of similar actions?
VS Code can render NoteBook inline with adding #%% comment
Would disown, nohup or setsid make difference?
Thanks for the tip on jupyter lab

and yes this worked, thanks!
nohup jupyter lab &