# 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:** 1\
**Showing post:** 2

<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>
```
````

---

_[View the full topic](https://discourse.julialang.org/t/embed-interactive-html-plot-in-documentation-using-documenter-jl/68890)._
