Juno doesn't produce plots


#1

I ran a Julia code in Juno by having the file opened and pressing the run button on the left and I expected to see a few figures in the plot window. However, no figures shows up at the plot window. The figures turn up only when I copy and paste the plotting block of the code in the console and enter. Is there anything that I am missing? Thanks!!


#2

Thats the same as in any script you’d call via julia foo.jl – no output will be displayed unless you explicitly request it. display()ing your plot inside of the script should work though.

Also, for reference:


#3

Thanks for the answer. What is julia foo.jl?

Is the following the correct use of display()? I mean, by using the handle of figures.

h = plot(...)
display(h)

#4

julia foo.jl is the command line invocation for executing the script foo.jl. Also, yes, your use of display is correct.


#5

Oh, I see.

Thanks for the confirmation!!