Cookes and Terms and Conditions

I accept This site stores small pieces of text information called cookies on your computer in order to deliver better content and for statistical purposes. You can disable the usage of cookies by changing the settings of your browser. By using this website without changing your browser settings you are granting permission to store that information on your device.

Any and all use of this Website is subject to our terms and conditions

Direct App Embedding

This is a simple example of use of a dash application within a Django template. Use of the plotly_direct template tag with the name of a dash application causes the Dash application to be directly embedded within the page.

The plotly_class tag is also used to wrap the application in css class names based on the application (django-plotly-dash), the type of the embedding (here labelled "div-direct"), and the slugified version of the app name (simpleexample).

{% load plotly_dash %}

<div class="{% plotly_class name="SimpleExample" template_type="div-direct"%}">

{% plotly_direct name="SimpleExample" %}

<\div>

Loading...