GithubHelp home page GithubHelp logo

Extension error: Could not import extension nbsphinx (exception: cannot import name 'contextfilter' from 'jinja2') about nbsphinx HOT 2 CLOSED

lneuhaus avatar lneuhaus commented on July 26, 2024
Extension error: Could not import extension nbsphinx (exception: cannot import name 'contextfilter' from 'jinja2')

from nbsphinx.

Comments (2)

lneuhaus avatar lneuhaus commented on July 26, 2024

see https://github.com/pallets/jinja/blob/05a5f8120a62f2e1da322131c632be2ba8d969fc/src/jinja2/utils.py#L40 - seems one is supposed to use pass_context() instead of contextfilter now. And in the tagged github version 3.0.0, this change has already happened, but I suppose the PyPI version 3.0.0 is not that one, but maybe corresponds to tag 3.0.0a1 or so https://github.com/pallets/jinja/blob/3.0.0a1/src/jinja2/utils.py or so, where it's still called contextfilter.

from nbsphinx.

lneuhaus avatar lneuhaus commented on July 26, 2024

Ah, I now see this is a duplicate of jupyter/nbconvert#1742, and it belongs there..

from nbsphinx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.