Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run jupyter notebook in the background ? No need to keep one terminal for it

Often we run jupyter notebook to pop up a page in browser to use notebook. However, the terminal opening the server remains there. Is there a way that we can close that terminal with server running in the back ?

like image 238
Xingdong Avatar asked Nov 16 '17 13:11

Xingdong


People also ask

How do I start a Jupyter notebook without terminal?

Double-click on the Jupyter Notebook desktop launcher (icon shows [IPy]) to start the Jupyter Notebook App. The notebook interface will appear in a new browser window or tab. A secondary terminal window (used only for error logging and for shut down) will be also opened.

How do I keep the Jupyter notebook running?

This can be done by typing jupyter notebook in the terminal, which will open a browser. Then, navigate to the respective jupyter notebook file in the browser and open it. Click Cell > Run All on the toolbar. All done!

How do I turn off Jupyter terminal?

NOTE: You can also shutdown a Jupyter Notebook session by clicking in the Terminal window and clicking Ctrl+c . You will be asked to confirm that you want to Shutdown this notebook server (y/[n])? . Type y and hit Enter to confirm. Then, you can close the Terminal by typing the command exit and hitting Enter .


1 Answers

You can put the process into the background by using jupyter notebook &. You can close the terminal afterwards and the process will still be running.

like image 188
pgrosslicht Avatar answered Sep 28 '22 03:09

pgrosslicht