You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This should be packed up into ihaskell-hvega but I'm not sure how to handle the difference between using in Jupyter notebooks and Jupyter lab, so probably just a different module for now - but if you have a VegaLite visualization created with toVegaLite , then you can
import qualified IHaskell.Display as IHD
import qualified Data.Text.Lazy as LT
import Data.Aeson.Text (encodeToLazyText)
instance IHD.IHaskellDisplay VegaLite where
display vl =
let js = LT.unpack (encodeToLazyText (fromVL vl))
in pure (IHD.Display [IHD.vegalite js])
after which you should see the visualization automatically in JupyterLab:
This should be packed up into
ihaskell-hvega
but I'm not sure how to handle the difference between using in Jupyter notebooks and Jupyter lab, so probably just a different module for now - but if you have aVegaLite
visualization created withtoVegaLite
, then you canafter which you should see the visualization automatically in JupyterLab:
So I suggest you go over to https://github.com/tweag/jupyterWith and try it out.
The text was updated successfully, but these errors were encountered: