The grammar itself uses JSON, but there is now also a Python package, which makes GenomeSpy much easier to use in Python notebooks and workflows.
GenomeSpy: genomespy.app
GitHub: github.com/genome-spy/
genomespy.app
GenomeSpy — Interactive Genomic Visualization for Web and Notebooks
A visualization grammar and GPU-accelerated rendering engine for genomic (and other) data