Skip to content

Instantly share code, notes, and snippets.

@maartenbreddels
Created July 15, 2024 10:48
Show Gist options
  • Save maartenbreddels/54a7018b340671fc4b696b35f63735aa to your computer and use it in GitHub Desktop.
Save maartenbreddels/54a7018b340671fc4b696b35f63735aa to your computer and use it in GitHub Desktop.
Example of using PyCafe with sphibnx

Code and image on PyCafe

This is a simple Altair example that compares the performance of different cars.

Code

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:

Preview image

The image below is included from PyCafe directly, and links to the live app.

https://py.cafe/preview/maartenbreddels/altair-car-performance-interactive

Interactive embedded version

The interactive version below is included from PyCafe as an iframe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment