Steven Silvester c4cb42c72a Add a Python example to vega2 readme 7 yıl önce
..
src b58d518a17 Clean up handling of vega module and mime document rendering 7 yıl önce
style 0d1f848205 Adding newline. 7 yıl önce
typings b57be5303e Rename vega -> vega2-extension 7 yıl önce
README.md c4cb42c72a Add a Python example to vega2 readme 7 yıl önce
package.json 2485eaae61 Publish 7 yıl önce
tsconfig.json 1259515db4 Delay import of vega deps 7 yıl önce

README.md

@jupyterlab/vega2-extension

A mime-renderer extension for JupyterLab that provides support for rendering Vega and Vega-lite documents and mimebundles.

Example in Python:

from IPython.display import display

display({
    "application/vnd.vegalite.v1+json": {
        "$schema": "https://vega.github.io/schema/vega-lite/v1.json",
        "description": "A simple bar chart with embedded data.",
        "data": {
            "values": [
                {"a": "A", "b": 28}, {"a": "B", "b": 55}, {"a": "C", "b": 43},
                {"a": "D", "b": 91}, {"a": "E", "b": 81}, {"a": "F", "b": 53},
                {"a": "G", "b": 19}, {"a": "H", "b": 87}, {"a": "I", "b": 52}
            ]
        },
        "mark": "bar",
        "encoding": {
            "x": {"field": "a", "type": "ordinal"},
            "y": {"field": "b", "type": "quantitative"}
        }
    }
}, raw=True)