# Tyler in VSCode Notebook Prints Two Figures with 1 Call

**URL:** <https://discourse.julialang.org/t/tyler-in-vscode-notebook-prints-two-figures-with-1-call/130823>\
**Category:** General Usage\
**Tags:** question, package, plotting, makie, tyler\
**Created:** [July 17, 2025, 6:34pm UTC](https://discourse.julialang.org/t/tyler-in-vscode-notebook-prints-two-figures-with-1-call/130823 "2025-07-17T18:34:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![elipivo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/elipivo/32/32916_2.png) [@elipivo](https://discourse.julialang.org/u/elipivo)\
**Post date:** [July 17, 2025, 6:34pm UTC](https://discourse.julialang.org/t/tyler-in-vscode-notebook-prints-two-figures-with-1-call/130823/1 "2025-07-17T18:34:44Z")

</div>

I am using Tyler with CairoMakie in a Julia notebook in VSCode. I’m curious if there is a way to get Tyler to only display the figure with the tiles, not the first empty one.

 ![image](https://global.discourse-cdn.com/julialang/original/3X/7/e/7e016afb8e448dc1a5267fe1ec472eb5e0c1eac1.png)

---

<div class="post-metadata">

**Author:** ![asinghvi17](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/asinghvi17/32/8272_2.png) [@asinghvi17](https://discourse.julialang.org/u/asinghvi17)\
**Post date:** [July 17, 2025, 7:19pm UTC](https://discourse.julialang.org/t/tyler-in-vscode-notebook-prints-two-figures-with-1-call/130823/2 "2025-07-17T19:19:14Z")

</div>

There was some function to wait on the map but I forgot what it was. If I can dig it out I will let you know

---

<div class="post-metadata">

**Author:** ![asinghvi17](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/asinghvi17/32/8272_2.png) [@asinghvi17](https://discourse.julialang.org/u/asinghvi17)\
**Post date:** [July 17, 2025, 7:23pm UTC](https://discourse.julialang.org/t/tyler-in-vscode-notebook-prints-two-figures-with-1-call/130823/3 "2025-07-17T19:23:23Z")

</div>

Yep it’s `wait(map)`. But keep in mind that Tyler is not really intended to work on cairomakie, so you may experience issues. Best to use a GL backend with Tyler.

Unfortunately there is not really a good way to stop the dual display at this point, since Tyler needs the figure to be displayed to stop it from infinitely looping

---

<div class="post-metadata">

**Author:** ![elipivo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/elipivo/32/32916_2.png) [@elipivo](https://discourse.julialang.org/u/elipivo)\
**Post date:** [July 18, 2025, 7:28pm UTC](https://discourse.julialang.org/t/tyler-in-vscode-notebook-prints-two-figures-with-1-call/130823/4 "2025-07-18T19:28:16Z")

</div>

Okay, thanks! I’m using this to generate some figures for an academic journal, so I was trying to use Tyler with CairoMakie because it is recommended for publication quality figures.

---

<div class="post-metadata">

**Author:** ![asinghvi17](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/asinghvi17/32/8272_2.png) [@asinghvi17](https://discourse.julialang.org/u/asinghvi17)\
**Post date:** [July 20, 2025, 6:32pm UTC](https://discourse.julialang.org/t/tyler-in-vscode-notebook-prints-two-figures-with-1-call/130823/5 "2025-07-20T18:32:05Z")

</div>

If you need higher quality, you can just pass a high `px_per_unit` kwarg whenever you call `save` as much as necessary (3 or 4 should be enough)
