This is a simple Altair example that compares the performance of different cars.
This code below is included from PyCafe directly.
.. remoteliteralinclude:: https://py.cafe/files/maartenbreddels/altair-car-performance-interactive/app.py :language: python :emphasize-lines: 16-22 :linenos:
The image below is included from PyCafe directly, and links to the live app.
The interactive version below is included from PyCafe as an iframe.