# Cannot make plots (sys:1: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.)

**URL:** https://discourse.julialang.org/t/cannot-make-plots-sys-userwarning-matplotlib-is-currently-using-agg-which-is-a-non-gui-backend-so-cannot-show-the-figure/103363
**Category:** VS Code
**Tags:** plotting
**Created:** [August 30, 2023, 12:01pm UTC](https://discourse.julialang.org/t/cannot-make-plots-sys-userwarning-matplotlib-is-currently-using-agg-which-is-a-non-gui-backend-so-cannot-show-the-figure/103363 "2023-08-30T12:01:37Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Torkel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/torkel/32/5030_2.png) [@Torkel](https://discourse.julialang.org/u/Torkel)
#### Post date: [August 30, 2023, 12:01pm UTC](https://discourse.julialang.org/t/cannot-make-plots-sys-userwarning-matplotlib-is-currently-using-agg-which-is-a-non-gui-backend-so-cannot-show-the-figure/103363/1 "2023-08-30T12:01:37Z")

</div>

I tried to plot something in VSCode:

```julia
using Plots
plot(x->x)

```

However, no plot is displayed and I get a printed message:

```julia
sys:1: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.

```

Running the same code in a normal REPL work. Running it from the VSCode REPL work. But running it from inline like this does not work:  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/a/3/a37a66e499fcb2f0c75a139b87a30610cdce9341.png)

Julai version 1.9.2, Plots version 1.9.25, Linux version 22.04

---

<div class="post-metadata">

### Author: ![BeastyBlacksmith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/beastyblacksmith/32/4741_2.png) [@BeastyBlacksmith](https://discourse.julialang.org/u/BeastyBlacksmith)
#### Post date: [August 30, 2023, 2:08pm UTC](https://discourse.julialang.org/t/cannot-make-plots-sys-userwarning-matplotlib-is-currently-using-agg-which-is-a-non-gui-backend-so-cannot-show-the-figure/103363/2 "2023-08-30T14:08:25Z")

</div>

That is a fairly old version of Plots

---

<div class="post-metadata">

### Author: ![Torkel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/torkel/32/5030_2.png) [@Torkel](https://discourse.julialang.org/u/Torkel)
#### Post date: [August 30, 2023, 2:22pm UTC](https://discourse.julialang.org/t/cannot-make-plots-sys-userwarning-matplotlib-is-currently-using-agg-which-is-a-non-gui-backend-so-cannot-show-the-figure/103363/3 "2023-08-30T14:22:16Z")

</div>

Yeah, I created the repo quite a while ago, and if I can avoid it I’d rather avoid updating it (as I imagine I then have to update other packages, which then will require me to update code, and so on).
