A Campos
A Campos

Reputation: 803

Jupyter Notebooks: Updated packages don't update inside the notebook

I had an annoyance with some Pandas operations and someone suggested that upgrading it to the latest version might solve the problem. I updated it from version 0.24.1 to 0.25.3

When I check the version in my virtual environment I get:

(matrix) ➜  web git:(T24_2019) pip freeze | grep pandas
pandas==0.25.3

But when I do the same thing inside the notebooks I get:

pandas==0.23.4
Note: you may need to restart the kernel to use updated packages.

I did restart the kernel many times, but it never worked. Is there a specific way to restart it? Does it have anything to do with iPython having other versions of my packages installed?

Note: I do not use Anaconda.

Thank you!

Upvotes: 5

Views: 12485

Answers (1)

Rene B.
Rene B.

Reputation: 7414

It seems that you check the versions of two different virtual environments. What you have to do is to upgrade the package of the virtualenv where your Jupyter Notebook is running.

As @The Half-Blood Prince already mentioned, you can do this by running the following command in a cell of your jupyter notebook:

!pip install --upgrade pandas

Upvotes: 2

Related Questions