I was recently using Jupyter lab and decided to update my pandas version from 1.2 to the latest (1.4). So I ran 'conda update pandas' which seemed to work fine. However when I then launched Jupyter lab in the usual way 'jupyter lab' and tried to open the workbook I had just been working on I got the below error:
Unreadable Notebook: C:\Users...\script.ipynb TypeError("init() got an unexpected keyword argument 'capture_validation_error'")
I am getting this same error when trying to open any of my .ipynb files that were previously working fine. I can also open them fine in jupyter notebook, but for some reason they don't work in Jupyter lab anymore. Any idea how I can fix this?
Thanks
It turns out that a recent update to jupyter_server>=1.15.0 broke compatibility with nbformat<5.2.0, but did not update the conda recipe correctly per this Github pull request.
It is possible that while updating pandas, you may have inadvertently also updated jupyterlab and/or jupyter_server.
While we wait for the build with the merged PR to come downstream, we can fix this dependency issue by updating nbformat manually with
conda install -c conda-forge nbformat
to get the newest version of nbformat with version >=5.2.
I had the same issue. I had installed jupyterlab using conda.
conda install -c conda-forge jupyterlab
and I could not open any notebook (old ones as newly created). What fixed my issue was to uninstall jupyterlab and jupyter and then reinstall jupyter lab.
conda remove jupyterlab
conda remove jupyter
conda install -c conda-forge jupyterlab
Related
I have Anaconda and Spyder installed. I had been using Spyder with no issues until it randomly stopped working the next time I opened it to continue working on something. I'm very new to coding and I appreciate your help in advance.
Things I have tried (after googling and looking at posts from people who have had the same or similar problem):
restarting my computer
resetting spyder
updating pyzmq
updating
ipykernel
pip install spyder kernels
I'm not sure what happened or why it stopped working.
when I run conda list Spyder$:
pyls-spyder 0.4.0 pyhd3eb1b0_0
spyder 5.2.2 py39haa95532_1
Edit: I would also like to add that while I can get jupyter notebook to open, nothing is printed. So it's likely the kernel is also not working there.
I've tried following this video that had me run the following:
python -m pip install ipykernel
python mipykernel install user
I'm using SunPy in an environment, and have updated in the command line using conda update sunpy. According to the command line, I am using the current version (4.13.0). However, when I open jupyter and load a notebook, I get the following:
import sunpy as sp
print(sp.__version__)
3.1.7
I've checked to make sure that sunpy was updated in the right folder, I used the right command, I was within the environment when I updated, etc. I'm still getting the wrong version, even if I try %conda install -c conda-forge sunpy to update within the jupyter notebook itself (it says it's already up-to-date). Any ideas on how to force it to load the correct version? Thanks in advance!
This worked for me. Not for sunpy but pandas. I executed line by line within nb cell.
!pip install pandas==1.3.5
%conda install -c conda-forge pandas
import pandas as pd
Then pd. __version__
i get: '1.3.5'
I'm trying to install gmaps 0.9.0 in my jupyter environment but when I try to run the example from the tutorial page it just gets stuck on "Loading widget...":
In chrome developer tools I can see something has clearly gone wrong:
Plugin 'jupyter-gmaps' failed to activate. Error: No provider for:
jupyter.extensions.jupyterWidgetRegistry.
Could not instantiate widget
Here are the lines in my dockerfile that I used to build gmaps:
RUN pip install gmaps==0.9.0
RUN jupyter nbextension enable --py --sys-prefix gmaps && jupyter lab build
Here's what I've tried:
With and without the %matplotlib inline (per this SO question)
Pip-installing versions 0.9.0 and 0.8.2
I've read this github ticket but couldn't see anything helpful: https://github.com/pbugnion/gmaps/issues/79 (they suggest restarting your computer, but I've rebuilt my docker container so that clearly hasn't helped in my case)
My jupyterlab version was 2.2.0. Updating to 3.0.14 resolved this issue for me.
I installed jupyter via pip
pip install jupyter
I can start it with
jupyter notebook
but (chrome and iexplore) cast an MIME error
The AppData/Roaming/jupyter/runtime folder only contains some json and html files, nothing more.
I also tried
pip uninstall jupyter
pip install jupyter
PS: I currently use
Python 3.7.2
pip 19.0.3
jupyter 4.4.0
So apparently this issue is known. For everybody landing here instead of github, here is the solution
https://github.com/jupyter/notebook/issues/4467
The problem is in the notebook package, not jupyter.
I am using Anaconda installation and many times the updates don't work.
For example, some bokeh commands work well when I run the a python program from the command line (i.e c:> python testPlot.py), but will not work in the IPython console or from Spyder.
I tried updating conda, Anaconda, bokeh, but the behavior doesn't change. This is not just this one package. Others have the same issue.
Any idea?
Thanks.
C:>conda update conda
conda 4.0.6 py27_0
C:>conda update anaconda
anaconda 4.0.0 np110py27_0
C:>conda update bokeh
bokeh 0.11.1 py27_0
Just open a cmd prompt in Windows or Terminal on a mac and paste this with the version you are having trouble installing.
conda install anaconda-navigator=(whatever version is giving you trouble)