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.
Only the last output is displayed, try
using Plots
display(plot(cos))
readline()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With