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.3.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.3-py2.py3-none-any.whl (559.6 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

File hashes

Hashes for django_js_lib_vega_embed-6.29.0.3.tar.gz
Algorithm Hash digest
SHA256 5a89166e72bc3c9038013a8b04901591d7926cca5f8586134cb4219de89676fc
MD5 3319f263d672409cb7e8daf331aaa5a4
BLAKE2b-256 8fbfaeba4c53902813d4b9d8717b977fcedf80e5658bd8e83b97a5c72db3674d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_js_lib_vega_embed-6.29.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 995b3dcd5d8a4b4d1b87503515dd5a1a7ab6b309a0758f951c36fa8d2e06c582
MD5 2cb4807a767cd31e99130434ffa20f69
BLAKE2b-256 6200e3e863dd15a536cf84698fd034c650c97826fbfe07a4d0d6f5150748c524

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