Giter VIP home page Giter VIP logo

Comments (5)

PaleNeutron avatar PaleNeutron commented on May 25, 2024 3

Downgrade to 3.5 works

from ipyvega.

zmbc avatar zmbc commented on May 25, 2024

Same here -- I think this issue is related to 5acd121. Specifically, this 404 comes from trying to require "jupyter-vega" without configuring it.

I don't understand all the internals of how the nbextension gets loaded, but I do know that running jupyter nbextension enable vega --py --sys-prefix activates jupyter-vega/index, NOT jupyter-vega/extension. And, if I manually edit the notebook.json file to say jupyter-vega/extension, it still doesn't work, because index.js executes before extension.js does.

from ipyvega.

zmbc avatar zmbc commented on May 25, 2024

Furthermore, this extension appears to have depended on the execution order/timing even before 3.6. Specifically, the check for an already-rendered static image only works if the JS execution happens right away (before an image, later in the outputs array, is rendered). When the require call does not return immediately, because the extension has not been loaded yet, the end result is that the extension preferentially shows the PNG output instead of the interactive output.

Edit: I cannot seem to get this extension to do what I want (render the interactive version if possible, fall back to the PNG version where that isn't possible) no matter what versions I use -- the extension has had this logic from the time PNG rendering was introduced and Jupyter notebooks have been loading extensions asynchronously for a very long time. Could this possibly be the intended behavior? I find that extremely surprising.

from ipyvega.

giuliano108 avatar giuliano108 commented on May 25, 2024

Downgrade to 3.5 works

Confirmed downgrading fixes the issue (no plot showing in the cell output, no errors in the notebook) for me as well.

from ipyvega.

domoritz avatar domoritz commented on May 25, 2024

@cpsievert I am running into this issue as well. Can you help fix it?

from ipyvega.

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.