Comments (5)
Downgrade to 3.5 works
from ipyvega.
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.
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.
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.
@cpsievert I am running into this issue as well. Can you help fix it?
from ipyvega.
Related Issues (20)
- Altair's "notebook" renderer is no longer working HOT 10
- vegalite no longer working with pandas 1.0 or later version HOT 6
- Wheel installs extraneous 'test' script
- Update to Vega-Lite 5 HOT 1
- Communicate selections back to Python HOT 1
- VegaWidget not updating properly HOT 11
- Improve serialization of Pandas DataFrames to ipyvega HOT 3
- Tutorial example is not rendered HOT 9
- Make the conda package noarch HOT 3
- VegaWidget doesn't appear to work with ipywidgets.embed HOT 4
- Jupyter notebook is not displaying charts inline HOT 10
- Support Jupyterlab HOT 4
- vega_datasets should be a dev dependency
- Resolve deprecation warning HOT 1
- What is uploaded? HOT 1
- Update Galata HOT 1
- Make new release
- Move dependencies from ui-tests to main package.json HOT 4
- pandas-2.0 support ? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ipyvega.