# Gks Error When Plotting in VS Code

**URL:** <https://discourse.julialang.org/t/gks-error-when-plotting-in-vs-code/36618>\
**Category:** VS Code\
**Tags:** juno, vscode, qt, gr\
**Created:** [March 27, 2020, 10:16pm UTC](https://discourse.julialang.org/t/gks-error-when-plotting-in-vs-code/36618 "2020-03-27T22:16:38Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![zekeriya.sari](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zekeriya.sari/32/13695_2.png) [@zekeriya.sari](https://discourse.julialang.org/u/zekeriya.sari)\
**Post date:** [May 6, 2020, 3:47pm UTC](https://discourse.julialang.org/t/gks-error-when-plotting-in-vs-code/36618/11 "2020-05-06T15:47:37Z")

</div>

Setting `ENV["GKSwstype"] = "100"` (in `startup.jl` to avoid setting all the time Julia is launched) solved the problem. Now nothing wrong with using `GR` as a backed of Plots in VSCode.

---

_[View the full topic](https://discourse.julialang.org/t/gks-error-when-plotting-in-vs-code/36618)._
