Altair: Default Mark Property

Created on 12 Dec 2016  路  2Comments  路  Source: altair-viz/altair

I came accross a problem with the display of altair plots in Jupyter notebooks.
Take the following code, where df is any dataset:

from altair import Chart
Chart(df).to_dict().get('mark')

This would return 'point' in altair 1.0.0. In altair 1.2.0 this returns None, which results in a javascript error of the jupyter-vega extension and no display of the plot.

If the latter behavior is anticipated (i.e. the mark property of vega-lite plots may be undefined) the jupyter-vega extension would need a fix.

Niels

bug

Most helpful comment

Thanks! Yes, I'd noticed that changed, but hadn't appreciated the consequences. We'll make sure to fix this in the upcoming 2.0 release.

All 2 comments

Thanks! Yes, I'd noticed that changed, but hadn't appreciated the consequences. We'll make sure to fix this in the upcoming 2.0 release.

I marked this as 1.3 as it should be easy to fix.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bmcfee picture bmcfee  路  3Comments

nielsmde picture nielsmde  路  4Comments

morberg picture morberg  路  3Comments

floringogianu picture floringogianu  路  3Comments

pabloinsente picture pabloinsente  路  3Comments