# Why no canvas popping up with Plots

**URL:** <https://discourse.julialang.org/t/why-no-canvas-popping-up-with-plots/99059>\
**Category:** New to Julia\
**Created:** [May 18, 2023, 1:29pm UTC](https://discourse.julialang.org/t/why-no-canvas-popping-up-with-plots/99059 "2023-05-18T13:29:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sijo](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@sijo](https://discourse.julialang.org/u/sijo)\
**Post date:** [May 18, 2023, 3:18pm UTC](https://discourse.julialang.org/t/why-no-canvas-popping-up-with-plots/99059/2 "2023-05-18T15:18:20Z")

</div>

Welcome to the Julia Discourse! Have a look [here](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757) for tips on writing posts, in particular for formatting the code examples.

I think the problem is that in the terminal (REPL), the result of every line is automatically displayed, so when you run `plot(f, 0, 68292)` it shows the plot. But when you run a code block in VS Code it probably shows only the result of the last line (here the last line has no result: the `println` call writes the message to standard output but then it doesn’t return anything).

You can force the display of an intermediate result with the `display` function:

```julia
plt = plot(f, 0, 6.28292)
display(plt)

```

---

_[View the full topic](https://discourse.julialang.org/t/why-no-canvas-popping-up-with-plots/99059)._
