# Julia PlotlyJS block show plot, update plot

**URL:** https://discourse.julialang.org/t/julia-plotlyjs-block-show-plot-update-plot/37104
**Category:** General Usage
**Tags:** question
**Created:** [April 6, 2020, 11:15am UTC](https://discourse.julialang.org/t/julia-plotlyjs-block-show-plot-update-plot/37104 "2020-04-06T11:15:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Xeno](https://avatars.discourse-cdn.com/v4/letter/x/e19b73/32.png) [@Xeno](https://discourse.julialang.org/u/Xeno)
#### Post date: [April 6, 2020, 11:15am UTC](https://discourse.julialang.org/t/julia-plotlyjs-block-show-plot-update-plot/37104/1 "2020-04-06T11:15:08Z")

</div>

I’m trying to include a plot using the PlotlyJS package in a small application using Blink. So far, whenever I use the plot function, it opens a new window, which I want to avoid… Furthermore, when updating the plot, another window pops up - also not wanted. Does anyone know how to avoid these new windows? Thanks in advance!

Sample code:

using PlotlyJS,Blink

scatter\_1 = scatter(;x=rand(10),y=rand(10))  
p = plot(scatter\_1) # first unwanted window

w = Window()  
body!(w,p)

scatter\_2 = scatter(;x = 2_rand(10), y = 2_rand(10))  
addtraces(p, scatter\_2) #second unwated window
