Code Monkey home page Code Monkey logo

Comments (5)

KristofferC avatar KristofferC commented on May 27, 2024

AFAIU, Literate just provide multiple MIME types of the same object and it is up to the renderer to chose how this should be displayed.

from literate.jl.

improbable-22 avatar improbable-22 commented on May 27, 2024

OK, after digging a bit I do think the issue is most likely on the other end. I pasted in there lots of details: kokes/nbviewer.js#28 (comment)

May I ask, why include multiple formats in the Literate output at all? Is this in case something is incompatible with SVG?

Something about this also confuses Jupyter itself, which does not seem to show the graphs when opening a notebook produced by Literate.

from literate.jl.

KristofferC avatar KristofferC commented on May 27, 2024

Something about this also confuses Jupyter itself, which does not seem to show the graphs when opening a notebook produced by Literate.

That sounds like you are not "trusting" the notebook (which is needed to render svg), ref https://ipython.org/ipython-doc/3/notebook/security.html#explicit-trust.

from literate.jl.

improbable-22 avatar improbable-22 commented on May 27, 2024

Oh awesome, thank you! I would never have found the "trust" concept.

The remaining question on the other thread seems to be whether there is a standard order of preference for formats which ought to be used. I would guess vector > raster > text but beyond that I don't know.

from literate.jl.

improbable-22 avatar improbable-22 commented on May 27, 2024

Solved on the other side (kokes/nbviewer.js#28) thus closing here.

from literate.jl.

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.