Skip to content

vega/SciPy2024-Altair-Tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Vega-Altair Tutorial for SciPy 2024

This repository contains resources for the Vega-Altair tutorial for SciPy 2024.

See the tutorial description for more information.

Binder

Dependencies

The only Python dependency of this tutorial is the altair package with the all extras enabled.

To install with pip from PyPI:

pip install altair[all]

Or, to install from conda-forge:

conda install -c conda-forge altair-all vega_datasets anywidget

During the live tutorial at SciPy 2024, participants are encouraged to use the Nebari JupyterHub distribution (https://scipy.quansight.dev) with the vega-altair-tutorial conda environment, which has these dependencies pre-installed.

Outline

This tutorial is divided into four parts, each focusing on different aspects of data visualization using Vega-Altair. Below is an outline of the tutorial along with links to each notebook.

Part 1: Data Types, Graphical Marks, and Visual Encoding Channels

Part 2: Data Transformation

Part 3: Interactivity

  • Objective: Learn how to add interactivity to charts.
  • Key Topics:
    • Basic interactive features (tooltips and pan/zoom)
    • Selection parameters
    • Conditional encodings and filtering
  • Notebook: Part 3 - Interactivity
  • Exercises: Part 3 - Exercises

Part 4: Sharing and Publishing Visualizations

  • Objective: Learn how to share and publish your Vega-Altair visualizations.
  • Key Topics:
    • Exporting charts as HTML
    • Saving charts as static images (PNG, SVG, PDF)
    • References for embedding charts in static documents (Quarto, Jupyter Book, LaTeX)
    • References for creating dashboards
  • Notebook: Part 4 - Sharing and Publishing Visualizations
  • Exercises: Part 4 - Exercises

About

Materials for Vega-Altair tutorial at SciPy 2024

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published