Keep Jupyter notebook running after closing browser tab

后端 未结 5 2013
清歌不尽
清歌不尽 2020-12-23 11:31

I use Jupyter Notebook to run a series of experiments that take some time. Certain cells take way too much time to execute so it\'s normal that I\'d like to close the browse

5条回答
  •  别那么骄傲
    2020-12-23 12:13

    First, install

    runipy

    pip install runipy
    

    And now run your notebook in the background with the below command:

    nohup runipy YourNotebook.ipynb OutputNotebook.ipynb >> notebook.log &
    

    now the output file will be saved and also you can see the logs while running with:

    tail -f notebook.log
    

提交回复
热议问题