Skip to content

Altair and other JS extensions do not work in Voila or Colab #486

@maartenbreddels

Description

@maartenbreddels

In https://github.com/widgetti/solara/blob/master/solara/widgets/vue/vegalite.vue
we assume the /_solara/_cdn/ endpoint can be reached. This endpoint exists in notebook, lab and solara server, but not in Voila (except when running as a voila extension in jupyter server) or colab.

A workaround for now is to manually set the solara_cdn javascript variable.

import IPython.display
# make solara use a real cdn, since the solara cdn proxy is not available
display(IPython.display.Javascript("solara_cdn = 'https://cdn.jsdelivr.net/npm/'"))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions