Skip to content

The avenger-html renderer does not display charts #77

@joelostblom

Description

@joelostblom

Thanks for starting this exciting project @jonmmease ! I was playing around with it a bit and it seems like I can't get the html renderer to work in either jupyterlab or vscode. This is the output I see using the example from the readme:

image

This is on Pop!_OS 22.04 LTS in a new conda env with the following:

# packages in environment at /home/joel/miniconda3/envs/avenger:
altair                    5.3.0                    pypi_0    pypi
altair-tiles              0.3.0                    pypi_0    pypi
avenger                   0.0.6                    pypi_0    pypi
vega-datasets             0.9.0                    pypi_0    pypi
vegafusion                1.6.7                    pypi_0    pypi
vegafusion-python-embed   1.6.7                    pypi_0    pypi
vl-convert-python         1.4.0                    pypi_0    pypi
Code
import altair as alt
from vega_datasets import data

source = data.cars()
chart = alt.Chart(source).mark_circle().encode(
    x='Horsepower',
    y='Miles_per_Gallon',
    color='Origin',
)
chart

alt.renderers.enable('avenger-html')
chart

alt.renderers.enable('avenger-png')
chart

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions