Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to resume operation after pausing in jupyter

Is it possible to pause the operation of jupyter while performing a computational intense task freeing the cpu and resume it later.

like image 779
user93 Avatar asked Jun 10 '16 10:06

user93


2 Answers

I realize this is very outdated, but I found a solution to this problem after searching for quite a while! I actually ended up trying a bunch of random combinations.

CTRL+S worked for me when using jupyter notebook with Anaconda.

You must be in the shell for this to work. Also, other key combinations that didn't work for me but were suggested elsewhere include: CTRL+Z and CTRL+I

Hopefully this can at least help out someone down the line...

like image 52
ideaman Avatar answered Sep 21 '22 09:09

ideaman


In current Jupyter no such option. But you can try system tools

In case of Task manager in Windows:

  1. Identify running process with name python.exe
  2. Set low priority of the process with a click in popup menu

For more control try "Process Explorer". It can Suspend command for the tree of processes.

Also see https://www.reddit.com/r/Python/comments/1spmpt/pause_a_running_python_script_and_resume_when/ for further tricks On Linux or Mac.

like image 44
sherdim Avatar answered Sep 22 '22 09:09

sherdim