# How to plot outside of a notebook using GLMakie?

**URL:** https://discourse.julialang.org/t/how-to-plot-outside-of-a-notebook-using-glmakie/103143
**Category:** General Usage
**Tags:** plotting, glmakie, notebooks
**Created:** [August 24, 2023, 7:56am UTC](https://discourse.julialang.org/t/how-to-plot-outside-of-a-notebook-using-glmakie/103143 "2023-08-24T07:56:38Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Reza-Reza](https://avatars.discourse-cdn.com/v4/letter/r/dc4da7/32.png) [@Reza-Reza](https://discourse.julialang.org/u/Reza-Reza)
#### Post date: [August 24, 2023, 7:56am UTC](https://discourse.julialang.org/t/how-to-plot-outside-of-a-notebook-using-glmakie/103143/1 "2023-08-24T07:56:38Z")

</div>

When I plot using **GLMakie** it plots inside the notebook. Is there a way to plot outside the notebook? For example, for Python the command `%matplotlib qt` allows plotting outside a notebook. Is there a similar command for Julia?

---

<div class="post-metadata">

### Author: ![ederag](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ederag/32/4106_2.png) [@ederag](https://discourse.julialang.org/u/ederag)
#### Post date: [August 24, 2023, 9:36am UTC](https://discourse.julialang.org/t/how-to-plot-outside-of-a-notebook-using-glmakie/103143/2 "2023-08-24T09:36:57Z")

</div>

`display(fig)` should open a new window displaying the figure `fig`.

---

<div class="post-metadata">

### Author: ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)
#### Post date: [August 24, 2023, 10:04am UTC](https://discourse.julialang.org/t/how-to-plot-outside-of-a-notebook-using-glmakie/103143/3 "2023-08-24T10:04:16Z")

</div>

Or you can do `GLMakie.activate!(inline=false)` to make it open a window by default.

---

<div class="post-metadata">

### Author: ![Reza-Reza](https://avatars.discourse-cdn.com/v4/letter/r/dc4da7/32.png) [@Reza-Reza](https://discourse.julialang.org/u/Reza-Reza)
#### Post date: [August 24, 2023, 12:31pm UTC](https://discourse.julialang.org/t/how-to-plot-outside-of-a-notebook-using-glmakie/103143/4 "2023-08-24T12:31:03Z")

</div>

Thanks! When I use it in the example below it does not work and still plot appears inside the notebook. I use Jupyterlab and the version of GLMakie is v0.8.8.

```julia
using GLMakie
x = 0:0.1:10
y = sin.(x);
GLMakie.activate!(inline=false)
lines(x,y)

```

---

<div class="post-metadata">

### Author: ![ederag](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ederag/32/4106_2.png) [@ederag](https://discourse.julialang.org/u/ederag)
#### Post date: [August 24, 2023, 3:08pm UTC](https://discourse.julialang.org/t/how-to-plot-outside-of-a-notebook-using-glmakie/103143/6 "2023-08-24T15:08:45Z")

</div>

Just checked, `GLMakie.activate!(inline=false)` does not work in Pluto either,  
so this is not specific to Jupyter.  
Versions: `julia 1.9.2`, `GLMakie 0.8.8`, `Pluto 0.19.27`, `firefox 115.1.0esr`.
