# Embed interactive .html plot in documentation using Documenter.jl

**URL:** <https://discourse.julialang.org/t/embed-interactive-html-plot-in-documentation-using-documenter-jl/68890>\
**Category:** General Usage\
**Tags:** documenter, html, plotlyjs\
**Created:** [September 28, 2021, 6:19pm UTC](https://discourse.julialang.org/t/embed-interactive-html-plot-in-documentation-using-documenter-jl/68890 "2021-09-28T18:19:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cyrieln](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cyrieln/32/24612_2.png) [@cyrieln](https://discourse.julialang.org/u/cyrieln)\
**Post date:** [September 28, 2021, 6:19pm UTC](https://discourse.julialang.org/t/embed-interactive-html-plot-in-documentation-using-documenter-jl/68890/1 "2021-09-28T18:19:14Z")

</div>

I was wondering if it is possible to embed an interactive .html plot as outputted by `Plots plotlyjs() savefig `to a documentation page as rendered by Documenter.jl.  
I tried copy pasting the raw HTML from the plot .html file in a `@raw html` block but this does not seem to work. A blank canvas is shown on the rendered documentation page.

Thanks!

---

<div class="post-metadata">

**Author:** ![cyrieln](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cyrieln/32/24612_2.png) [@cyrieln](https://discourse.julialang.org/u/cyrieln)\
**Post date:** [November 30, 2021, 8:24pm UTC](https://discourse.julialang.org/t/embed-interactive-html-plot-in-documentation-using-documenter-jl/68890/2 "2021-11-30T20:24:04Z")

</div>

I found a solution:

````julia
```@example
using PlotlyJS

plt = plot(scatter(x=1:10, y=1:10))

savefig(plt, "figure.html")
```

```@raw html
<iframe src="figure.html" style="height:500px;width:100%;"></iframe>
```
````
