Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 972
Oscar Avatar asked Mar 27 '26 07:03

Oscar


1 Answers

Only the last output is displayed, try

using Plots
display(plot(cos)) 
readline()
like image 135
Fredrik Bagge Avatar answered Mar 30 '26 11:03

Fredrik Bagge



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!