In [1]:
from altair import api, html
In [2]:
data = dict(x=[1, 2, 3, 4, 5, 6, 7], y=[1, 2, 3, 4, 5, 6, 7])
spec = api.Viz(data)
In [3]:
s = spec.encode(x='x:Q', y='y:Q').point()
In [4]:
from IPython.display import HTML, display
In [5]:
out = html.render(s)
display(HTML(out))