Oscar
Oscar

Reputation: 311

Plot command fails when followed by a readline()

The following program produces a plot

using Plots
plot(cos)

but this one does not

using Plots
plot(cos)
readline()

I am using Julia 1.2.0 on macOS 10.11.6 with JupyterLab in Firefox 74.0. When encountering the readline() in the latter program it displays a text-entry box which accepts text input but there is never a plot made.

Upvotes: 3

Views: 64

Answers (1)

Fredrik Bagge
Fredrik Bagge

Reputation: 1381

Only the last output is displayed, try

using Plots
display(plot(cos)) 
readline()

Upvotes: 5

Related Questions