I have a Julia Jupyter notebook in which I generate plots with Plots, e.g., something like
thxpplot=plot(title=title,xlabel="T (K)",ylabel="V/V0")
thxpplot=plot!(Tplt,Vplt/V0,label=mat,color="red")
display((thxpplot))
and also text output, e.g.,
@printf("%s: %s (%d atoms)\n","Material",mat,N)
Annoyingly, both output streams don't seem to be synchronized. It frequently happens, especially in larger examples than this, that a part of the printed text appears before the plot and the rest after it, even though the succession of instructions as given by the code clearly separates both. How can I ensure proper synchronization between these output streams, or in other words, how can I flush the output buffers immediately? I don't have the impression that this is an issue in Python notebooks.
Thomas