jupyter lab - suppress console output

2020-04-16 01:43发布

问题:

I am running jupyter lab 4.4.0 on redhat 6. I am trying to start the lab in the background so that the app's output is not appearing in my console anymore.

$ jupyer lab & > /dev/null 2>&1

But the console still shows output from the jupyter app (e.g. the startup messages and any saving logs)

回答1:

You should rewrite your command like this:

$ jupyer lab >/dev/null 2>&1 &

ANd also is wise to add nohup to avoid stop of app if you logout

$ nohup jupyer lab >/dev/null 2>&1 &


标签: linux jupyter