Open ttpro1995 opened 3 years ago
You can refer to this link.
jupyter notebook list
simply reads JSON files named nbserver-pid.json
in the Jupyter runtime directory (found via jupyter --runtime
). Check those files to ensure there's nothing out of the ordinary. The content should be JSON and resemble the following...
{
"base_url": "/",
"hostname": "localhost",
"notebook_dir": "/Users/kbates/.jupyter",
"password": false,
"pid": 39736,
"port": 8888,
"secure": false,
"sock": "",
"token": "78905550521d33869297b7a8e0a7618ab990da77091f7764",
"url": "http://localhost:8888/"
}
i went there it was fine but i cant solve the problem yet
Just create a folder in the Jupyter runtime directory. Backup by Moving all the .json files there. Then start a new notebook and try 'jupyter notebook list' again.
I've run into this issue as well.
I'm also seeing this, has anyone found a solution?
Edit: bf2harven's solution above worked for me, though its unclear why this is happening and whether it will happen again...
Temporary solution of
1) Moving all the jsons from the folder resulting in
jupyter --runtime-dir
to another folder
2) start new
jupyter notebook
3) jupyter notebook list
seem to resolve decode error but has a blank input just as
jupyter lab list
jupyter server list
however runned instances are seen in
ps aux | grep jupyter
which is suprising due to https://github.com/jupyter/notebook/issues/2254#issuecomment-317709079
I just deleted the folder: /home/USER/.local/share/jupyter And restarted jupyter lab. Then it was working for me. Jupyter lab will create this folder again after starting. But attention: Some settings might get lost! It is therefore maybe worth saving the folder just in case you want to recover it again.
I had an empty page_config.json in ~/.jupyter/labconfig
removing it solved the issue of jupyter lab
throwing JSONDecodeError
In base conda environment, I run
It show error
Expectation: list all running instance if any.