jupyter_to_medium
jupyter_to_medium copied to clipboard
cannot import name 'contextfilter' from 'jinja2'
Hi! On collab, I got the below error today. Colab installs jinja: Requirement already satisfied: jinja2>=2.4 in /usr/local/lib/python3.9/dist-packages (from nbconvert==5.6.1->jupyter_to_medium) (3.1.2)
However, error message states that cannot import name 'contextfilter' from 'jinja2'
The screen capture is below. Thank you! KMK
ImportError Traceback (most recent call last)
4 frames
/usr/local/lib/python3.9/dist-packages/nbconvert/exporters/html.py in
ImportError: cannot import name 'contextfilter' from 'jinja2' (/usr/local/lib/python3.9/dist-packages/jinja2/init.py)

try downgrade Jinja2 to 3.0.3