I was wondering how to control the order of elements in “Out”. For example,
using Plots const xs = [-pi + i*(pi/10) for i in 0:20] function print_xs() println(xs) end print_xs() p = plot() for j = 1:3 ys = sin.(j*xs) plot!(p, xs,ys) end display(p)
This code prints out numbers to the standard output and then makes an image (plot). If you look at the “Out” field, the text appears first but the image appears later and pushes down the text.
I use CoCalc. I’ve started to use Jupyter last week and know very little about it.