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.2.tar.gz (557.7 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.2-py2.py3-none-any.whl (559.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

File hashes

Hashes for django_js_lib_vega_embed-6.29.0.2.tar.gz
Algorithm Hash digest
SHA256 cdd5728da65475078f633467eda5b1be8b6770751364b3187790890fa2c402e2
MD5 4a64ab99cfe611a5db7969e7ec8a5d7d
BLAKE2b-256 93e3529bf29fd7588b177d7da715023be63e979c1477511c991788ba03d9e535

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_js_lib_vega_embed-6.29.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 78f026819f41e9176800dcc7e2179ed5758db82adf99ea8ef2278da040b16917
MD5 a9d0612d1694a8a1375fde63a70c1d98
BLAKE2b-256 c2258f3b436a751ee190c746d34ec79f70fce3e6822f33a7170f34c4e7b3f656

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