I am following this tutorial example on my Mac Pro Big Sur.
https://altair-viz.github.io/gallery/simple_bar_chart.html
vtest.py is below:
import altair as alt
import pandas as pd
source = pd.DataFrame({
'a': ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I'],
'b': [28, 55, 43, 91, 81, 53, 19, 87, 52]
})
alt.Chart(source).mark_bar().encode(
x='a',
y='b'
)
When I execute this on a terminal, it doesn't display anything, no visualization showing up, no error or warning message either.
% python vtest.py
Doesn't Altair work on Mac OS?