Skip to content
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

All Vega rendering components are broken #1771

Closed
wadethestealth opened this issue Sep 13, 2019 · 9 comments
Closed

All Vega rendering components are broken #1771

wadethestealth opened this issue Sep 13, 2019 · 9 comments
Labels
bug 🐛 For unexpected issues

Comments

@wadethestealth
Copy link
Member

All Vega React components don't show any props inside supportedMedia, and therefore output can not be routed to their display because it is missing the default mediaType prop.

@BenRussert

@wadethestealth
Copy link
Member Author

The work around for now is to downgrade to hydrogen 2.10.3 for your previously supported Vegas however it's impossible to use the newer Vegas

@phromo

@qchenevier

This comment has been minimized.

@wadethestealth

This comment has been minimized.

@qchenevier

This comment has been minimized.

@phromo
Copy link

phromo commented Sep 24, 2019

@wadethestealth can you throw some more detailed pointers to the work needed to resolve this? In what you mention above, is that changes needed in Hydrogen or Vega/Vegalite? Maybe I could help through a PR if you point the way.

I'm currently using alt.renderers.enable('png') as a workaround to avoid downgrading.

@wadethestealth
Copy link
Member Author

wadethestealth commented Sep 24, 2019

@phromo if you view the PR related to upgrading to support the newer Vegas #1724 there is a linked to nteract/nteract#4442 where the Vega transforms package was updated. What I know is that there were some changes there, but it could also be due to the PR that refractors our transforms #1663. (I dont believe this is related anymore as it was a part of 2.10)

@wadethestealth wadethestealth pinned this issue Sep 25, 2019
@wadethestealth
Copy link
Member Author

I was correct about nteract/nteract#4442. It seems that the defaultProps were left out in the refactor, so now I have fixed that, and will be awaiting the newest release of @nteract/transform-vega set to be published 9-30-19. In which case you will have all the vegas at your disposal. 😄 @phromo

@wadethestealth wadethestealth unpinned this issue Oct 1, 2019
@wadethestealth
Copy link
Member Author

wadethestealth commented Oct 1, 2019

Anyone who still faces this issue should reinstall hydrogen, or if you are more familiar with npm then you need to upgrade @nteract/transform-vega to atleast 6.0.2.

cc: @phromo

@rpalloni
Copy link

rpalloni commented Mar 6, 2020

Hello, does the issue still require hydrogen 2.10? I'm in hydrogen 2.14 / atom 1.44 / Ubuntu 18.04 / python 3.7 / altair 2 (or 4) and I cannot plot images with this code

import altair as alt

-- load a simple dataset as a pandas DataFrame
from vega_datasets import data
cars = data.cars()

fig = alt.Chart(cars).mark_point().encode(
x='Horsepower',
y='Miles_per_Gallon',
color='Origin',
).interactive()

fig

-- fig.to_dict() data are in

It does not seems to be an Altair issue as it works in Jupyter Notebook
vega/altair#765

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 For unexpected issues
Projects
None yet
Development

No branches or pull requests

4 participants