# How to make plot window stay open when running a .jl script

**URL:** https://discourse.julialang.org/t/how-to-make-plot-window-stay-open-when-running-a-jl-script/23484
**Category:** New to Julia
**Created:** [April 24, 2019, 8:01pm UTC](https://discourse.julialang.org/t/how-to-make-plot-window-stay-open-when-running-a-jl-script/23484 "2019-04-24T20:01:43Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![ffevotte](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ffevotte/32/6587_2.png) [@ffevotte](https://discourse.julialang.org/u/ffevotte)
#### Post date: [April 24, 2019, 11:23pm UTC](https://discourse.julialang.org/t/how-to-make-plot-window-stay-open-when-running-a-jl-script/23484/3 "2019-04-24T23:23:15Z")

</div>

First, please [quote your code](https://discourse.julialang.org/t/psa-how-to-quote-code-with-backticks/7530): this makes it easier to run your examples and help you.

  

As for your question: the problem is that you need Julia to stay alive for it to display the graph. There are two ways (that I know of):

1. run your script like this:

2. add `readline()` at the end of your script. This will make Julia wait until you press RET before it exits (and makes your plot disappear)

---

_[View the full topic](https://discourse.julialang.org/t/how-to-make-plot-window-stay-open-when-running-a-jl-script/23484)._
