ihaskell-hvega: IHaskell display instance for hvega types.

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

Support Vega-Lite visualizations in IHaskell notebooks.


[Skip to Readme]

Properties

Versions 0.1.0.0, 0.1.0.1, 0.1.0.3, 0.2.0.0, 0.2.0.1, 0.2.0.2, 0.2.1.0, 0.2.2.0, 0.2.3.0, 0.2.3.0, 0.2.4.0, 0.2.5.0, 0.2.6.0, 0.3.0.0, 0.3.1.0, 0.3.2.0, 0.4.0.0, 0.5.0.0, 0.5.0.1, 0.5.0.2, 0.5.0.3, 0.5.0.4, 0.5.0.5
Change log CHANGELOG.md
Dependencies aeson (>=0.11 && <1.5), base (>=4.7 && <5), hvega (<0.7), ihaskell (>=0.9.1 && <0.11), text (>=1.2 && <1.3) [details]
License BSD-3-Clause
Copyright 2018-2020 Douglas Burke
Author Douglas Burke
Maintainer dburke.gw@gmail.com
Category Development
Home page https://github.com/DougBurke/hvega
Bug tracker https://github.com/DougBurke/hvega/issues
Source repo head: git clone https://github.com/DougBurke/hvega
Uploaded by DouglasBurke at 2020-03-05T03:12:02Z

Modules

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Readme for ihaskell-hvega-0.2.3.0

[back to package description]

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

If your visualization uses anything more modern than version 2 of the Vega-Lite specification (and possibly even version 2 features) then there is a good chance that it will not display correctly in IHaskell. This can differ depending on whether you are using the notebook or lab interface.

For the lab interface I am waiting for support for custom mime-types to be released (it is in the master branch of IHaskell). For the notebook interface I gave up on trying to work through the JavaScript issues I came across.