Skip to content
Home » Deprecation warning from Jupyter: “`should_run_async` will not call `transform_cell` automatically in the future”

Deprecation warning from Jupyter: “`should_run_async` will not call `transform_cell` automatically in the future”

To solve Deprecation warning from Jupyter: “`should_run_async` will not call `transform_cell` automatically in the future” Follow below methods.

How to solve Deprecation warning from Jupyter: “`should_run_async` will not call `transform_cell` automatically in the future” ?

Method 1 :

Upgrade ipykernel 5.3.4 by running code below.

pip install --upgrade ipykernel

After that, make sure to restart your Juptyer server.
I discovered this by placing a breakpoint() at /ipkernel.py:287 to observe what was calling. If this solution does not work for you, try the below method.

Method 2:

Downgrade the ipython version to 7.10.0 fixes the problem as well.

pip install install ipython==7.10.0

Also, turn off the warnings using:

import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)

The same thing happened with python==3.9.2, ipykernel==5.5.0, and ipykernel==7.21.0 in a conda environment that used conda-forge repositories by default. Upgrading ipykernel to the newest 5.5.3 doesn’t help. It is linked to Python requires ipykernel to be installed