Altair: VegaLite2 chart not showing

Created on 18 Mar 2018  路  10Comments  路  Source: altair-viz/altair

The returned value is just VegaLite2 Object as shown below.
image

Most helpful comment

Oh, it's really no trouble! I hope that tweet doesn't come across as accusatory in any way... it's just me making sense of all the user bug reports I've seen lately and figuring out how to make the docs as useful as possible.

If you have any thoughts on how docs could be improved, I'd appreciate hearing them.

All 10 comments

If you are using the Jupyter notebook (not JupyterLab) you'll need to run alt.renderers.enable('notebook') in order for the plot to display.

More details at https://altair-viz.github.io/getting_started/installation.html and https://altair-viz.github.io/user_guide/troubleshooting.html

Please let me know if that fixes the issue for you

@jakevdp Thank you very much.

Result turned out to be like this.
image

You need to install and activate the vega3 package to use the notebook renderer. Instructions are at https://altair-viz.github.io/user_guide/display.html#jupyter-notebook

Once you've installed and activated vega3, make sure to restart your jupyter notebook, then things should work.

@jakevdp

Thank you very much sir. Worked out like a charm.
image

Would be even awesome if no text result returned, but already terrifically satisfied.

Yes, this is a known issue in the ipyvega/vega3 package: https://github.com/vega/ipyvega/issues/75

We'll try to get that fixed soon.

In the meantime, you might try using JupyterLab: things are much more streamlined there.

image

It's like me, literally, right there.
I feel bad and very sorry for the troubling sir.

Oh, it's really no trouble! I hope that tweet doesn't come across as accusatory in any way... it's just me making sense of all the user bug reports I've seen lately and figuring out how to make the docs as useful as possible.

If you have any thoughts on how docs could be improved, I'd appreciate hearing them.

Maybe you could link the docs in the error messages of the known bugs

We do now in the case of this issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

floringogianu picture floringogianu  路  3Comments

zanarmstrong picture zanarmstrong  路  4Comments

fischcheng picture fischcheng  路  4Comments

galloramiro picture galloramiro  路  3Comments

LukeMathWalker picture LukeMathWalker  路  3Comments