Skip to main content

Vega Embed for Django

Project description

Vega Embed for Django

Vega Embed packaged in a Django reusable app.

This package includes the original JS and CSS files from vega, vega-lite and vega-embed.

  • Vega: 5.33.0
  • Vega Lite: 5.23.0
  • Vega Embed: 6.29.0

Installation

pip install django-js-lib-vega-embed

Usage

  1. Add "js_lib_vega_embed" to your INSTALLED_APPS setting like this::

    INSTALLED_APPS = [
        ...
        "js_lib_vega_embed",
        ...
    ]
    
  2. In your template use:

    {% load static %}
    

    ...

    <script src="{%static "js_lib_vega_embed/vega-embed-full.js" %}"></script>
    

    or:

    <script src="{%static "js_lib_vega_embed/vega5.js" %}"></script>
    <script src="{%static "js_lib_vega_embed/vega-lite5.js" %}"></script>
    <script src="{%static "js_lib_vega_embed/vega-embed6.js" %}"></script>
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_js_lib_vega_embed-6.29.0.1.tar.gz (557.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_js_lib_vega_embed-6.29.0.1-py2.py3-none-any.whl (559.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django_js_lib_vega_embed-6.29.0.1.tar.gz.

File metadata

File hashes

Hashes for django_js_lib_vega_embed-6.29.0.1.tar.gz
Algorithm Hash digest
SHA256 3189ebe186bd7003cace917c9a97e6fd9c5a28a9282d6d40fb88b1a2f5563d91
MD5 931d514d09ed11ed923ce63fa3e9936e
BLAKE2b-256 05cdeb38b71da20774944eef1c412b407255cc3976bfda8391fb2982e14ccc5f

See more details on using hashes here.

File details

Details for the file django_js_lib_vega_embed-6.29.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_js_lib_vega_embed-6.29.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4c8418458b94beb757ee084813c3a44bf5e52537a7331d4ac188deffa296b5f4
MD5 1d41a9809e69c709b3aa2bdca933a763
BLAKE2b-256 1381876ee69695b06b4dd1dcb1a7ab67575d09b1a55c217b829fc7317269635e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page