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?
Asked
Active
Viewed 4,001 times
8

milkyway42
- 144
- 1
- 6
1 Answers
14
You can use with_terminal()
like so:
(the code is:
using PlutoUI
with_terminal() do
for i in 1:10
println("Hi, I'm $i")
end
end

Nils Gudat
- 13,222
- 3
- 39
- 60