In [7]:
from altair import api, html
In [8]:
data = dict(x=[1, 2, 3], y=[1, 2, 3])
spec = api.Viz(data)
In [9]:
s = spec.encode(x='x:Q', y='y:Q').line()
In [10]:
from IPython.display import HTML, display
In [11]:
out = html.render(s)
display(HTML(out))
In [12]:
out = html.render(s)
display(HTML(out))
In [14]:
Out[14]:
In [9]:
from IPython.display import HTML, display
In [10]:
display(HTML(foo))