Black Lives Matter - Action and Equality. ... Adafruit is part of the Stop Hate for Profit campaign. Adafruit is open and shipping.
0

CircuitPython Jupyter Notebook Kernel
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

CircuitPython Jupyter Notebook Kernel

by stenobook on Tue May 26, 2020 2:51 pm

I'm trying to install the CircuitPython Kernel on a Jupyter Notebook on a Raspberry Pi.

I end up with an error when I try to install the kernel:

ImportError: cannot import name 'create_prompt_application' from 'prompt_toolkit.shortcuts' (/usr/local/lib/python3.7/dist-packages/prompt_toolkit/shortcuts/__init__.py)

I've tried downgrading the prompt_toolkit with the following command: pip3 install 'prompt-toolkit<3.1.0,>=2.0.0' --force-reinstall

But, I still have the error. Any ideas?

stenobook
 
Posts: 10
Joined: Wed Dec 03, 2014 10:52 am

Re: CircuitPython Jupyter Notebook Kernel

by stenobook on Tue May 26, 2020 9:52 pm

I reinstalled Raspbian and installed all the required libraries as outlined in the adafruit tutorial in a virtual environment. That did the trick.

stenobook
 
Posts: 10
Joined: Wed Dec 03, 2014 10:52 am

Please be positive and constructive with your questions and comments.