Code Monkey home page Code Monkey logo

Comments (8)

takluyver avatar takluyver commented on May 17, 2024

I see the plot when I open that file in the live notebook dev version.

I wonder if some of the nbconvert code assumes that text/plain is always present? The Python kernel will always offer a plain text repr, and I think we expect that to always exist, though we may not have written that down.

from notebook.

takluyver avatar takluyver commented on May 17, 2024

Actually, that can't be it, because you can use e.g. display_png() in IPython and that displays without a text/plain format.

from notebook.

takluyver avatar takluyver commented on May 17, 2024

I think this is an nbconvert issue. I can reproduce it on master by doing ipython nbconvert --to html plot_not_visible.ipynb. There's no error message.

from notebook.

takluyver avatar takluyver commented on May 17, 2024

Aha, I think I see it. application/pdf is given a higher priority in the HTML output than SVG or PNG for some reason, so it tries to display that, but there's no block in the template to display pdf data. I think reordering the display priority should fix it.

from notebook.

takluyver avatar takluyver commented on May 17, 2024

See jupyter/nbconvert#5

from notebook.

jankatins avatar jankatins commented on May 17, 2024

Ok, that means the nbviewer one is dealt with (damn, I was actually writing the issue in that project but switched here before hitting submit). Thanks!

Also thanks for confirming that it is visible in the dev notebook and it's therefore not the formatting of the uuencoded data. Back to step one... :-/

from notebook.

jankatins avatar jankatins commented on May 17, 2024

Update: it seems that I misunderstood "print preview" and the Jupyter "File -> Print Preview" uses nbconvert in the background -> so it seems that this is both fixed by jupyter/nbconvert#5.

Thanks a lot!

from notebook.

takluyver avatar takluyver commented on May 17, 2024

Yep, our own 'print preview' menu item uses nbconvert to convert to static HTML.

from notebook.

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.