# How can I keep a GLMakie window open?

**URL:** <https://discourse.julialang.org/t/how-can-i-keep-a-glmakie-window-open/137713>\
**Category:** Visualization\
**Tags:** question, plotting, makie\
**Created:** [June 20, 2026, 3:29pm UTC](https://discourse.julialang.org/t/how-can-i-keep-a-glmakie-window-open/137713 "2026-06-20T15:29:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [June 20, 2026, 3:29pm UTC](https://discourse.julialang.org/t/how-can-i-keep-a-glmakie-window-open/137713/1 "2026-06-20T15:29:41Z")

</div>

I switched from PythonPlot to GLMakie, and in PythonPlot, I could do:

```julia-auto
plt.show(block=true)

```

at the end of a script that is run from the command line (not from the REPL) to keep the plot window open until the user closes it. Only when the user closes it should the script terminate. How can I achieve that with GLMakie?

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [June 20, 2026, 3:54pm UTC](https://discourse.julialang.org/t/how-can-i-keep-a-glmakie-window-open/137713/2 "2026-06-20T15:54:42Z")

</div>

wait(display(fig)) should block while the window is open
