Open mhooreman opened 5 years ago
When the notebook server starts, it writes a JSON file recording its details, which it will clean up when it shuts down. jupyter notebook list
uses those. Unfortunately the runtime directory we use can be cleaned up after several hours; there's meant to be a way to prevent this, but I'm not sure if we're using it, and it's almost impossible to test.
I think I'll make a PR to just avoid using XDG_RUNTIME_DIR.
Hello,
I have a "keepalive" script for jupyter notebook, which uses
jupyter notebook list --jsonlist
to search for running notebooks.Sometimes, my notebook is running, but the returned list if empty. I was unable to find a scenario to reproduce it, but it's happening quite often.
Environment information
Command line to start jupyter
Workaround The following code, which search for the "good notebook" PID, seems to work correctly.