Welcome to the Julia Discourse! Have a look here 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:
plt = plot(f, 0, 6.28292)
display(plt)