-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
404 error when rendering #418
Comments
Downgrade to 3.5 works |
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 |
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. |
Confirmed downgrading fixes the issue (no plot showing in the cell output, no errors in the notebook) for me as well. |
@cpsievert I am running into this issue as well. Can you help fix it? |
I'm getting a 404 error in the browser (and in the jupyter console) when running the
Vega(...)
cell.Here's the output from the jupyter console
Here's the output in the browser:
I followed the installation instruction on the README, here is my current venv:
Python 3.8.2
Jupyter Notebook 6.4.11
vega 3.6.0
pip freeze
:The text was updated successfully, but these errors were encountered: