View Vega-Lite visualizations
created by the
hvega package in IHaskell notebooks.
When used with Jupyter notebooks it relies on Vega-Embed to do the hard work of parsing and displaying the Vega Lite specification.
If run in a Jupyter Lab then the native Vega support is used for
displaying the Vega Lite specifications. I recommend using
Tweag I/O’s jupyterWith environment
to set this up, and have a rudimentary
This code is released under the BSD3 license.
The display should work correctly when using the IHaskell
interface, supporting features included in Vega-Lite 4 (this is new to
version 0.3, as earlier versions were limited to features in Vega-Lite
Support for the Jupyter lab interface is very limited since there is a curious combination of IHaskell and Jupyter lab issues (including whether you are using v1.2 or v2). This is very annoying.
For the latest version of this document, please see https://github.com/DougBurke/hvega/blob/master/ihaskell-hvega/CHANGELOG.md.
Bump to support version hvega-0.11.0.0.
Bump to support version hvega-0.10.0.0.
Support for the IHaskell notebook has been updated to version 4 of the Vega-Lite schema. Finally.
Support for the Jupyter Lab interface remains stuck in a maze of very-twisty paths…
0.2.2.0 - 0.2.6.0
Bump the maximum version of hvega.
The module now exports the
VegaLiteLab type (provided by Alexey
Kuleshevich (lehins). This type is used to support display in Jupyter
Lab as well as notebooks, and is a somewhat experimental feature.
The module now builds without warnings on GHC 8.8.1.
This release has been marked as compatible with version 0.4 of
but care should be taken as it is possible to create visualizations
that either do not display correctly, or do not display at all: these
are visualizations that take advantages of Vega-Lite functionality
of our use of an old Vega-Lite mimetype version in IHaskell; this
will hopefuly be addressed once a version of IHaskell is released
with support for
Updated the upper bounds of
ihaskell to allow version 0.10.
Updated the supported
hvega range to include version 0.3.
vlShow helper to allow Vega-Lite visualizations to be
viewed directly in Jupyter lab (rather than Jupyter notebook).
Try it out in Tweag’s jupyterWith environment.
The only change is to the cabal file, where
cabal-version: >=1.10 has
been changed to
cabal-version: 1.18. I honestly don’t know what the
minimum-supported version actually is (the version bump is to match
that used by
Updated the upper bounds of
aeson to really allow v1.4. This was not
released on Hackage.
The source code has been moved to the
src sub-directory to match the
layout used by
Several incorrect links in the cabal file have been fixed (as my GitHub
user name is not actually
The cabal package now includes
the latter is not guaranteed to be correct), as well as a
ihaskell is now in Stackage, the LTS version has been updated
to reflect this (to LTS 11.19), and the extra dependency removed.
This is the initial version of
ihaskell-hvega, and is released with
hvega version 0.1.0.0.