Hi,
I’ve been using Jupyter Notebook via Anaconda Navigator and recently, having issues with the output freezing on my screen but the process is still working.
Note, I recently installed Anaconda3-2023-07-1-Windowx-x86_64 (from an older version). I’ve checked all of my power settings, there is no hibernating or sleep. I’ve run tests on my computer hardware with no issues. My CPU is @~25% and memory ~22%.
The screenshots show that in
- the output is running and saving to my output file and (sorry I’m new so I can only share one image)
- the notebook that is actually running but the processing list is stuck showing the output from at least a half hour ago.
Any help would be greatly appreciated.
Thank-you in advance.
In general, Jupyter is meant to be used for interactive computation and not long running computation. Plus with output generating a lot of stdout and still process, you can easily over tax the communication and updating loop that would allow the most current result to show. Or if it is really long maybe you exceeded the buffer… You have to implement things with that in mind. So here, you’d send the output to a log file and then to monitor it in another terminal or Jupyter .ipynb
file instance with something like tail my_log.txt
or !tai my_log.txt
, respectively. Depending on what you use to make the log file, you may need to use flush()
to insure the output is saved immediately regularly and not delayed until later, see here and here and here and here.
In this case this probably would make a better Python script that you run in the terminal/console/interpreter/command line. There if you may be able to get it running, you use screen, tmux, or some modern version of those to then detach from stdout while the script runs. You can reattach the screen to check the progress.