# Issue plotting from REPL

**URL:** https://discourse.julialang.org/t/issue-plotting-from-repl/39784
**Category:** General Usage
**Tags:** plotting
**Created:** [May 19, 2020, 11:12pm UTC](https://discourse.julialang.org/t/issue-plotting-from-repl/39784 "2020-05-19T23:12:27Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Gaston](https://avatars.discourse-cdn.com/v4/letter/g/9fc29f/32.png) [@Gaston](https://discourse.julialang.org/u/Gaston)
#### Post date: [May 19, 2020, 11:12pm UTC](https://discourse.julialang.org/t/issue-plotting-from-repl/39784/1 "2020-05-19T23:12:28Z")

</div>

Hi,

I’m facing a problem trying to plot from the REPL (that was working fine but for some reason has decided to stop doing so).

If I run this simple code:

julia\> using Plots  
julia\> gr()  
julia\> x = Vector(1:pi/10:6\*pi);  
julia\> y = cos.(x);  
julia\> plot(x, y)

The REPL will not return from the last sentence. However, the same does not occur running the same code in the jupyter-notebook in which the plot shows as expected.

Any hint ?

Gaston

---

<div class="post-metadata">

### Author: ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)
#### Post date: [May 20, 2020, 1:31am UTC](https://discourse.julialang.org/t/issue-plotting-from-repl/39784/2 "2020-05-20T01:31:05Z")

</div>

Have you tried updating your packages?

Also note that GR has been the default plotting package for a while, so `gr()` is no longer necessary.

---

<div class="post-metadata">

### Author: ![Gaston](https://avatars.discourse-cdn.com/v4/letter/g/9fc29f/32.png) [@Gaston](https://discourse.julialang.org/u/Gaston)
#### Post date: [May 20, 2020, 1:52am UTC](https://discourse.julialang.org/t/issue-plotting-from-repl/39784/3 "2020-05-20T01:52:55Z")

</div>

Thanks for the response.

I’ve just tried updating: no luck.

Regarding the backend, using different backends leads different result: plotly calls the browser while pyplot behaves normally throwing just a standard plot window.

---

<div class="post-metadata">

### Author: ![jheinen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jheinen/32/2787_2.png) [@jheinen](https://discourse.julialang.org/u/jheinen)
#### Post date: [May 20, 2020, 3:51am UTC](https://discourse.julialang.org/t/issue-plotting-from-repl/39784/4 "2020-05-20T03:51:23Z")

</div>

… is your run-time really up-to-date? Please stop any GKSTerm or (GKS QtTerm) and:

```julia
ENV["GRDIR"]=""
] update GR

```

If this doesn’t help, which platform are you using?

---

<div class="post-metadata">

### Author: ![Gaston](https://avatars.discourse-cdn.com/v4/letter/g/9fc29f/32.png) [@Gaston](https://discourse.julialang.org/u/Gaston)
#### Post date: [May 20, 2020, 11:37am UTC](https://discourse.julialang.org/t/issue-plotting-from-repl/39784/5 "2020-05-20T11:37:32Z")

</div>

Still no luck.

julia\> versioninfo()  
Julia Version 1.4.1  
Commit 381693d3df (2020-04-14 17:20 UTC)  
Platform Info:  
OS: Linux (x86\_64-linux-gnu)  
CPU: Intel(R) Core™ i5-3210M CPU @ 2.50GHz  
WORD\_SIZE: 64  
LIBM: libopenlibm  
LLVM: libLLVM-8.0.1 (ORCJIT, ivybridge)  
julia\> ENV[“GRDIR”]=“”

(@v1.4) pkg\> update GR  
Updating registry at `~/.julia/registries/General`  
Updating git-repo `https://github.com/JuliaRegistries/General.git`  
Updating `~/.julia/environments/v1.4/Project.toml`  
[no changes]  
Updating `~/.julia/environments/v1.4/Manifest.toml`  
[no changes]

---

<div class="post-metadata">

### Author: ![jheinen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jheinen/32/2787_2.png) [@jheinen](https://discourse.julialang.org/u/jheinen)
#### Post date: [May 20, 2020, 1:43pm UTC](https://discourse.julialang.org/t/issue-plotting-from-repl/39784/6 "2020-05-20T13:43:30Z")

</div>

Sorry - my mistake:

```julia
ENV["GRDIR"]=""
] build GR

```

and then

```julia
using GR
version()

```

… should respond with “0.49.0.post45”

---

<div class="post-metadata">

### Author: ![Gaston](https://avatars.discourse-cdn.com/v4/letter/g/9fc29f/32.png) [@Gaston](https://discourse.julialang.org/u/Gaston)
#### Post date: [May 20, 2020, 1:47pm UTC](https://discourse.julialang.org/t/issue-plotting-from-repl/39784/7 "2020-05-20T13:47:38Z")

</div>

Ok, I get:

julia\> ENV[“GRDIR”]=“”  
“”

(@v1.4) pkg\> build GR  
Building GR → `~/.julia/packages/GR/cRdXQ/deps/build.log`

julia\> using GR

julia\> version()  
“0.49.0.post47”

---

<div class="post-metadata">

### Author: ![Gaston](https://avatars.discourse-cdn.com/v4/letter/g/9fc29f/32.png) [@Gaston](https://discourse.julialang.org/u/Gaston)
#### Post date: [May 22, 2020, 8:35pm UTC](https://discourse.julialang.org/t/issue-plotting-from-repl/39784/8 "2020-05-22T20:35:58Z")

</div>

Hi,

The issue seems to be solved after installing qt5-default.

The problem may have arisen after and upgrade in Debian testing. Not sure… the only related package that I see was install on 2020-05-07 is libqt5scripttools5.

Anyway, after installing qt5-default the plots are working normally using GR backend.

regards,

Gaston
