# Vscode notebook inline plot backend problem, PyPlot.jl

**URL:** <https://discourse.julialang.org/t/vscode-notebook-inline-plot-backend-problem-pyplot-jl/93308>\
**Category:** New to Julia\
**Created:** [January 21, 2023, 12:07pm UTC](https://discourse.julialang.org/t/vscode-notebook-inline-plot-backend-problem-pyplot-jl/93308 "2023-01-21T12:07:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![moon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/moon/32/46044_2.png) [@moon](https://discourse.julialang.org/u/moon)\
**Post date:** [January 21, 2023, 12:07pm UTC](https://discourse.julialang.org/t/vscode-notebook-inline-plot-backend-problem-pyplot-jl/93308/1 "2023-01-21T12:07:51Z")

</div>

How can I make PyPlot.jl (and probably matplotlib internally) recognize I have installkled gtk3?

Error message is “Python GUI toolkit for gtk3 is not installed.”.

background steps:  
Initial error below inside vscode notebook running Julia kernel on Windows:

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

```

so I set `pygui(true)` and can get external plot below, but I want an inlined plot in the notebook

 ![image](https://global.discourse-cdn.com/julialang/original/3X/2/8/28715277c4265437130e56ddf7055e5e2963e86f.png)

However if I try to use pygui(:gtk3) I still get below error (same as the start)  
“Python GUI toolkit for gtk3 is not installed.”

---

<div class="post-metadata">

**Author:** ![moon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/moon/32/46044_2.png) [@moon](https://discourse.julialang.org/u/moon)\
**Post date:** [January 21, 2023, 12:10pm UTC](https://discourse.julialang.org/t/vscode-notebook-inline-plot-backend-problem-pyplot-jl/93308/2 "2023-01-21T12:10:21Z")

</div>

note: I still have the problem even if I do have gtk3 installed in the correct conda environment (I launched vscode from an anaconda powershell prompt in the same environment)  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/d/1/d13b655da620643b5499f11d29625ff87c70027d.png)

---

<div class="post-metadata">

**Author:** ![moon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/moon/32/46044_2.png) [@moon](https://discourse.julialang.org/u/moon)\
**Post date:** [January 22, 2023, 12:41pm UTC](https://discourse.julialang.org/t/vscode-notebook-inline-plot-backend-problem-pyplot-jl/93308/3 "2023-01-22T12:41:39Z")

</div>

went through an adventure,  
1.Found out that the julia has an `unnamed conda environment c:\Users\<username>\.julia\conda\3`  
No luck installing gtk under that “hidden” environment either.

2.Tried installing gtk3 directly from the official windows package with msys2). No luck…

It would still be interesting to know how to get my local windows conda envs setup to run pygui with inline graphics in vscode: but for now the workaround (not a solution) is

`docker run -it --rm --name juliaa -p 127.0.0.1:8888:8888 <image name>`

with image from  
[https://hub.docker.com/r/jupyter/datascience-notebook/dockerfile](https://hub.docker.com/r/jupyter/datascience-notebook/dockerfile)

 ![image](https://global.discourse-cdn.com/julialang/original/3X/9/4/94c47a16676d84a86b61bc129b806fa1d15f82b3.png)
