# \`gui\` does not work with Jupyter Notebooks

**URL:** <https://discourse.julialang.org/t/gui-does-not-work-with-jupyter-notebooks/122194>\
**Category:** General Usage\
**Tags:** plotting, plots\
**Created:** [November 3, 2024, 7:57am UTC](https://discourse.julialang.org/t/gui-does-not-work-with-jupyter-notebooks/122194 "2024-11-03T07:57:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tillfalko](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tillfalko/32/212839_2.png) [@tillfalko](https://discourse.julialang.org/u/tillfalko)\
**Post date:** [November 3, 2024, 7:57am UTC](https://discourse.julialang.org/t/gui-does-not-work-with-jupyter-notebooks/122194/1 "2024-11-03T07:57:33Z")

</div>

One of my main frustrations with Julia is that the same code will behave differently on the REPL vs IJulia vs executed directly.

Why does the code

```julia
using Plots
gui(plot(randn(10)))

```

work on the REPL, but not in my Notebook?

---

<div class="post-metadata">

**Author:** ![greatpet](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Post date:** [November 3, 2024, 8:56am UTC](https://discourse.julialang.org/t/gui-does-not-work-with-jupyter-notebooks/122194/2 "2024-11-03T08:56:49Z")

</div>

For me, the following works in both the REPL and Jupyter notebook.

```julia
using Plots
plot(randn(10))

```

---

<div class="post-metadata">

**Author:** ![tillfalko](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tillfalko/32/212839_2.png) [@tillfalko](https://discourse.julialang.org/u/tillfalko)\
**Post date:** [November 3, 2024, 10:09am UTC](https://discourse.julialang.org/t/gui-does-not-work-with-jupyter-notebooks/122194/3 "2024-11-03T10:09:37Z")

</div>

These are different behaviors.  
`gui` is documented as ` Display a plot using the backends' gui window`, which is useful if you want to visualize real-time data.

Just calling `plot` or `display(plot(...))` in a notebook will show an inline plot.
