# Ipynb Files - Makie Result displayed in separate Window

**URL:** <https://discourse.julialang.org/t/ipynb-files-makie-result-displayed-in-separate-window/102770>\
**Category:** New to Julia\
**Created:** [August 13, 2023, 3:57pm UTC](https://discourse.julialang.org/t/ipynb-files-makie-result-displayed-in-separate-window/102770 "2023-08-13T15:57:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ralf\_Dietrich](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ralf_dietrich/32/5643_2.png) [@Ralf\_Dietrich](https://discourse.julialang.org/u/Ralf_Dietrich)\
**Post date:** [August 13, 2023, 3:57pm UTC](https://discourse.julialang.org/t/ipynb-files-makie-result-displayed-in-separate-window/102770/1 "2023-08-13T15:57:40Z")

</div>

Under Windows in VSCode I have an ipynb file  
In this is a small demo code for Makie.

```julia
using GLMakie
x = 1:40:360
fig = lines(x, x.^7; label = "Parabola",
    axis = (; xlabel = "x", ylabel = "y", title ="Title"),
    linestyle = :dashdot,
    figure = (; resolution = (1200,800), fontsize = 22))
axislegend(; position = :lt)
fig

```

When I execute the cell, the result sometimes appears below the cell as an image and sometimes as an extra window which is then also interactive.  
But I couldn’t figure out how to consciously control where the output takes place.

Who can help me with this please?

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)\
**Post date:** [August 13, 2023, 7:38pm UTC](https://discourse.julialang.org/t/ipynb-files-makie-result-displayed-in-separate-window/102770/2 "2023-08-13T19:38:27Z")

</div>

Sometimes as in randomly inline or windowed display?

---

<div class="post-metadata">

**Author:** ![Ralf\_Dietrich](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ralf_dietrich/32/5643_2.png) [@Ralf\_Dietrich](https://discourse.julialang.org/u/Ralf_Dietrich)\
**Post date:** [August 13, 2023, 8:06pm UTC](https://discourse.julialang.org/t/ipynb-files-makie-result-displayed-in-separate-window/102770/3 "2023-08-13T20:06:00Z")

</div>

yes, exactly like that. It changes from time to time

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)\
**Post date:** [August 13, 2023, 8:08pm UTC](https://discourse.julialang.org/t/ipynb-files-makie-result-displayed-in-separate-window/102770/4 "2023-08-13T20:08:53Z")

</div>

@sdanisch

---

<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 14, 2023, 8:14am UTC](https://discourse.julialang.org/t/ipynb-files-makie-result-displayed-in-separate-window/102770/5 "2023-08-14T08:14:56Z")

</div>

You should be able to control that via `Makie.inline(true/false)`.  
If youre switching between backends, you can also make the value stick for a particular backend:  
`GLMakie.activate!(inline=false)`

---

<div class="post-metadata">

**Author:** ![Ralf\_Dietrich](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ralf_dietrich/32/5643_2.png) [@Ralf\_Dietrich](https://discourse.julialang.org/u/Ralf_Dietrich)\
**Post date:** [August 14, 2023, 8:54am UTC](https://discourse.julialang.org/t/ipynb-files-makie-result-displayed-in-separate-window/102770/6 "2023-08-14T08:54:30Z")

</div>

This is very helpful, although it doesn’t explain why (if you don’t use GLMakie.activate!(inline=false/true)) this changing behavior sometimes happens.

While I have you on the line:  
something else that doesn’t directly belong to this topic but still seems worth asking:

if in the REPL a query for `?lines!` comes always only the help for `?lines`.

An excerpt from the help text:

```julia
 lines(positions)
  lines(x, y)
  lines(x, y, z)

```

But the important info for the possible integration of “Axis” like `lines!(ax, x, y, linewidth = 9, color = y)` is not mentioned there.  
Couldn’t this be improved?

---

<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 14, 2023, 9:12am UTC](https://discourse.julialang.org/t/ipynb-files-makie-result-displayed-in-separate-window/102770/7 "2023-08-14T09:12:12Z")

</div>

Of course yes!  
We do have a documentation project: [[Roadmap] Documentation · Issue #3105 · MakieOrg/Makie.jl · GitHub](https://github.com/MakieOrg/Makie.jl/issues/3105) for that.  
But it’s not clear when the work on that will start.  
Meanwhile, you can always open a PR to improve the current docstrings!

> this changing behavior sometimes happens.

Not sure either, but it is a global, so maybe something changes that global.  
E.g. loading a backend could change it, but re-activating the backend should bring back the the previous inline behaviour!

```julia
using GLMakie # has inline false as default
using CairoMakie # changes global to inline!(true)
GLMakie.activate!() # should bring back inline!(false)

```

---

<div class="post-metadata">

**Author:** ![Ralf\_Dietrich](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ralf_dietrich/32/5643_2.png) [@Ralf\_Dietrich](https://discourse.julialang.org/u/Ralf_Dietrich)\
**Post date:** [August 14, 2023, 10:57am UTC](https://discourse.julialang.org/t/ipynb-files-makie-result-displayed-in-separate-window/102770/8 "2023-08-14T10:57:05Z")

</div>

Thank you very much for the prompt help. I appreciate it very much
