This is a popular issue on Jupyter Notebook. The solution:
- try
pip install --upgrade ipykernel ipython
which should upgrade the ipykernet to a recent version with issue resolved - or add this to your notebook to allow nested asyncio loops
!pip install nest-asyncio
import nest_asyncio
nest_asyncio.apply()