Skip to content

Commit bb55df0

Browse files
Update doc/python/interactive-html-export.md
Co-authored-by: Liam Connors <[email protected]>
1 parent 4d8baf4 commit bb55df0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: doc/python/interactive-html-export.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ By default, the resulting HTML file is a fully self-contained HTML file which ca
5757

5858
### Inserting Plotly Output into HTML using a Jinja2 Template
5959

60-
You can insert Plotly output and text related to your data into HTML templates using Jinja2. Use `.to_html` to send the HTML to a Python string variable rather using write_html to send the HTML to a disk file. Use the `full_html=False` option to output just the code necessary to add a figure to a template that will provide e.g. the `<HTML>` tag rather than asking Plotly to ouput a complete webpage. First create an HTML template file containing a Jinja `{{ variable }}`. In this example, we customize the HTML in the template file by replacing the Jinja variable `{{ fig }}` with our graphic `fig`.
60+
You can insert Plotly output and text related to your data into HTML templates using Jinja2. Use `.to_html` to send the HTML to a Python string variable rather than using `write_html` to send the HTML to a disk file. Use the `full_html=False` option to output just the code necessary to add a figure to a template. We don't want to output a full HTML page, as the template will define the rest of the page's structure — for example, the page's `HTML` and `BODY` tags. First create an HTML template file containing a Jinja `{{ variable }}`. In this example, we customize the HTML in the template file by replacing the Jinja variable `{{ fig }}` with our graphic `fig`.
6161

6262
```
6363
<!DOCTYPE html>

0 commit comments

Comments
 (0)