ihaskell-hvega

IHaskell display instance for hvega types.

https://github.com/DougBurke/hvega

Version on this page:0.3.2.0
LTS Haskell 12.26:0.1.0.3
Stackage Nightly 2021-10-27:0.4.0.0
Latest on Hackage:0.4.0.0

See all snapshots ihaskell-hvega appears in

BSD-3-Clause licensed by Douglas Burke
Maintained by dburke.gw@gmail.com
This version can be pinned in stack with:ihaskell-hvega-0.3.2.0@sha256:57b749f3c14b224af6f9484b2cd531299dd740477aa6e6f300f19a8c291b5fac,1182

Module documentation for 0.3.2.0

ihaskell-hvega

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 shell.nix example in the notebooks directory.

This code is released under the BSD3 license.

Current status

The display should work correctly when using the IHaskell notebook 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 3).

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.

Changes

For the latest version of this document, please see https://github.com/DougBurke/hvega/blob/master/ihaskell-hvega/CHANGELOG.md.

0.3.2.0

Bump to support version hvega-0.11.0.0.

0.3.1.0

Bump to support version hvega-0.10.0.0.

0.3.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.

0.2.1.0

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 hvega, 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 not supported by the Javascript display code (presumably because 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 custom mimetypes).

0.2.0.2

Updated the upper bounds of ihaskell to allow version 0.10.

0.2.0.1

Updated the supported hvega range to include version 0.3.

0.2.0.0

Added the 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.

0.1.0.3

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 hvega.

0.1.0.2

Updated the upper bounds of aeson to really allow v1.4. This was not released on Hackage.

0.1.0.1

The source code has been moved to the src sub-directory to match the layout used by hvega.

Several incorrect links in the cabal file have been fixed (as my GitHub user name is not actually githubuser).

The cabal package now includes stack.yaml and default.nix (although the latter is not guaranteed to be correct), as well as a change log.

Since ihaskell is now in Stackage, the LTS version has been updated to reflect this (to LTS 11.19), and the extra dependency removed.

0.1.0.0

This is the initial version of ihaskell-hvega, and is released with hvega version 0.1.0.0.