Jupyter Notebook Error – NotImplementedError in Python

Jupyter Notebook Error – NotImplementedError in Python is an error which occurs in Python when we work wih a Jupyter Notebook. This is just a bug in the Jupyter Notebook.

In this article we are going to explain why the error Jupyter Notebook Error – NotImplementedError in Python is popping up and show you how to solve the error and get rid of it for good.

Explaining the Jupyter Notebook Error – NotImplementedError in Python

The error happens when you try to run a Jupyter Notebook. It is a bug that we can easily solve and deal with.

This is how the message of the error looks like.

                                                                       #

....
File "c:\users\user\appdata\local\programs\python\python38\lib\asyncio\events.py"
, line 501, in add_reader
raise NotImplementedError
NotImplementedError
                                                                       #

Bellow we will describe how the error can be solved. With multiple possible solutions.

Solution 1 : reinstall asyncio

First of all, you need to reinstall asyncio, in order to do that, you should follow two steps.

First, Let us use the following command, the command will upgrade asyncio.

                                                                       #
pip install asyncio --upgrade
                                                                       #

Then, run the following command.

                                                                       #
pip install ipykernel --upgrade
                                                                       #

The command above upgrades the kernel package.

After you do that, test and see what is going to happen, if all is fine then congratulations. If not, please try the solution bellow.

Solution 2 : downgrade your version of Python

Another solution that might work for you. Is to downgrade your version of Python.

For example if you the Python version 3.8

Downgrade to Python version 3.6

See what is going to happen and good luck.

If the solution does not wok, you can try the solution bellow.

Solution 3 : upgrade Jupyter to the latest version

This is a half solution half announcement, the issue is a bug in Jupyter Notebook and was fixed in the latest versions.

All you have to do is to upgrade Jupyter. In order to do that, run the command bellow.

                                                                       #
pip install notebook --upgrade
                                                                       #

I hope the solutions above fixed your problem, good luck with the scripts to come and with your Python Journey.

Summing-up

This is the end of our article, the error Jupyter Notebook Error – NotImplementedError in Python could be confusing but with a little bit of investigating the error could be solved easily, thank you for reading.

To support us consider donating to our Kofi account above. Keep coding, keep learning and cheers. If you want to learn more about Python, please check out the Python Documentation : https://docs.python.org/3/