Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Print statement in Pluto.jl

Tags:

julia

pluto.jl

I am trying to making print statement work in Pluto.jl. Right now when I execute println it prints to console, using PlutoUI extension to makes the print statement work but not in for loop. Is there a way to print in for loop to Pluto.jl notebook?

like image 864
milkyway42 Avatar asked Feb 02 '21 17:02

milkyway42


1 Answers

You can use with_terminal() like so:

enter image description here

(the code is:

using PlutoUI
with_terminal() do 
    for i in 1:10
        println("Hi, I'm $i")
    end
end
like image 124
Nils Gudat Avatar answered Sep 21 '22 04:09

Nils Gudat