# Display with different plots show the same plot several times

**URL:** <https://discourse.julialang.org/t/display-with-different-plots-show-the-same-plot-several-times/103897>\
**Category:** General Usage\
**Tags:** plots, plotlylight\
**Created:** [September 15, 2023, 2:19pm UTC](https://discourse.julialang.org/t/display-with-different-plots-show-the-same-plot-several-times/103897 "2023-09-15T14:19:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ovt](https://avatars.discourse-cdn.com/v4/letter/o/87869e/32.png) [@ovt](https://discourse.julialang.org/u/ovt)\
**Post date:** [September 15, 2023, 2:19pm UTC](https://discourse.julialang.org/t/display-with-different-plots-show-the-same-plot-several-times/103897/1 "2023-09-15T14:19:06Z")

</div>

Here is a minimal example:

```julia
using PlotlyLight

display(Plot(y=rand(10)))
display(Plot(y=rand(10)))

```

If I run this code inside a script, it will open two tabs in my browser with the same plot on both tabs. Somehow, it does the expected behavior when the script is run with VSCode and that the `Display plots within VS Code` option is enabled.

---

<div class="post-metadata">

**Author:** ![joshday](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joshday/32/368_2.png) [@joshday](https://discourse.julialang.org/u/joshday)\
**Post date:** [October 11, 2023, 3:06pm UTC](https://discourse.julialang.org/t/display-with-different-plots-show-the-same-plot-several-times/103897/2 "2023-10-11T15:06:41Z")

</div>

I “fixed” and responded to the issue here: [stacked displays · Issue #33 · JuliaComputing/PlotlyLight.jl · GitHub](https://github.com/JuliaComputing/PlotlyLight.jl/issues/33)
