# Windows based CLI/VSCode Term. is not displaying data visualizations (C/P into REPL works. though)(GLMakie)

**URL:** <https://discourse.julialang.org/t/windows-based-cli-vscode-term-is-not-displaying-data-visualizations-c-p-into-repl-works-though-glmakie/90950>\
**Category:** New to Julia\
**Tags:** plotting, visualization\
**Created:** [November 28, 2022, 2:17pm UTC](https://discourse.julialang.org/t/windows-based-cli-vscode-term-is-not-displaying-data-visualizations-c-p-into-repl-works-though-glmakie/90950 "2022-11-28T14:17:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![b0id](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/b0id/32/44022_2.png) [@b0id](https://discourse.julialang.org/u/b0id)\
**Post date:** [November 28, 2022, 2:17pm UTC](https://discourse.julialang.org/t/windows-based-cli-vscode-term-is-not-displaying-data-visualizations-c-p-into-repl-works-though-glmakie/90950/1 "2022-11-28T14:17:07Z")

</div>

Hi,

So I seem to have some wires crossed in my system somewhere and I am reaching out to see if anyone has experienced any similiar issues.

I have been working with GLMakie a bit, playing around with data visualization and at one point I was able to compile and visualize the demos from GLMakie (Beautiful Makie)

At this point, if I run the script from the command line, (julia script.jl) OR if I am running it in the Visual Studio terminal, it is clearly compiling, but then returns to terminal prompt without displaying the windows with the visualization. However, if I copy and paste the script directly into the REPL it will load the windows with the visualization.

If anyone has any ideas about where to look around to straighten this out I would appreciate feedback.

Thanks.

---

<div class="post-metadata">

**Author:** ![jmair](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jmair/32/35117_2.png) [@jmair](https://discourse.julialang.org/u/jmair)\
**Post date:** [November 29, 2022, 8:50am UTC](https://discourse.julialang.org/t/windows-based-cli-vscode-term-is-not-displaying-data-visualizations-c-p-into-repl-works-though-glmakie/90950/2 "2022-11-29T08:50:12Z")

</div>

If it’s in a script, I think you need to use the function `display`. This is the same when using `Plots`. E.g.

```julia
plt = create_figure()
display(plt)

```

This should work, but I don’t know whether the windows will close as soon as the script finishes running. I would recommend using the “built-in” VS code REPL and using the “play” button to run the whole script in the open REPL if you have any issues.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)\
**Post date:** [November 29, 2022, 8:58am UTC](https://discourse.julialang.org/t/windows-based-cli-vscode-term-is-not-displaying-data-visualizations-c-p-into-repl-works-though-glmakie/90950/3 "2022-11-29T08:58:58Z")

</div>

I think I’ve seen `wait(display(plt))` before to avoid that the process finishes afterwards if you’re not in a REPL. And there is also the `-i` flag for `julia` to start the REPL after the script has finished. Here’s an example with the `-e` flag which would usually also quit directly after: `julia -i -e 'display(1 + 1)'`

Starting a GLMakie project from `julia some_script.jl` will currently incur a lot of compilation latency each time, which will not be much fun. So I recommend starting a repl and then doing `include("some_script.jl")` as an alternative. Or even Revise.jl based workflows where you do `includet("some_source.jl")` and then edit/save and `run_some_function()`.

---

<div class="post-metadata">

**Author:** ![b0id](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/b0id/32/44022_2.png) [@b0id](https://discourse.julialang.org/u/b0id)\
**Post date:** [November 29, 2022, 2:34pm UTC](https://discourse.julialang.org/t/windows-based-cli-vscode-term-is-not-displaying-data-visualizations-c-p-into-repl-works-though-glmakie/90950/4 "2022-11-29T14:34:26Z")

</div>

This helped with my issue. Thanks jmair, jules
