I had an old conda environment and had some jupyter notebooks from ~6 months ago, and I am now unable to open them. Here is the jupyter console output from my attempt
[W 22:08:54.661 NotebookApp] 400 GET /api/contents/Course%20Materials/06_pandas/06_lecture_script.ipynb?type=notebook&=1628712534135 (::1): Unreadable Notebook: c:\temp\06_lecture_script.ipynb OSError(22, ‘Invalid argument’)
[W 22:08:54.661 NotebookApp] Unreadable Notebook: C:\temp\06_lecture_script.ipynb OSError(22, ‘Invalid argument’)
[W 22:08:54.675 NotebookApp] 400 GET /api/contents/temp/06_lecture_script.ipynb?type=notebook&=1628712534135 (::1) 25.000000ms referer=http://localhost:8888/notebooks/temp/06_pandas/06_lecture_script.ipynb
Things I have tried:
- Creating new notebooks. This works fine, indicating that I am not having kernel issues
- Creating a new conda environment with the below commands. I was able to open jupyter independently of my first environment, but hit the same error when opening old notebooks:
conda create -n jupyter python=3.7
conda activate jupyter
conda install jupyter
- Checking the output of
jupyter kernelspec list
and thekernel.json
file per: [What to do when things go wrong — Jupyter Notebook 7.0.6 documentation]
The various stackoverflow searches that I have done for this error were with kernel issues, and jupyter was unable to start, and I do not have this problem. In particular, I have verified the following packages:
# Name Version Build Channel
ipykernel 6.0.3 py37h7813e69_0 conda-forge
ipython 7.26.0 py37h4038f58_0 conda-forge
ipython_genutils 0.2.0 py_1 conda-forge
ipywidgets 7.6.3 pyhd3deb0d_0 conda-forge
I can provide a full list of conda packages on request as well.