# Is there a way for Pluto to print the terminal output while it's running?

**URL:** <https://discourse.julialang.org/t/is-there-a-way-for-pluto-to-print-the-terminal-output-while-its-running/101576>\
**Category:** General Usage\
**Tags:** pluto\
**Created:** [July 13, 2023, 1:41pm UTC](https://discourse.julialang.org/t/is-there-a-way-for-pluto-to-print-the-terminal-output-while-its-running/101576 "2023-07-13T13:41:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PeX](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pex/32/49986_2.png) [@PeX](https://discourse.julialang.org/u/PeX)\
**Post date:** [July 13, 2023, 1:41pm UTC](https://discourse.julialang.org/t/is-there-a-way-for-pluto-to-print-the-terminal-output-while-its-running/101576/1 "2023-07-13T13:41:40Z")

</div>

Hello everyone,  
I’m using Pluto notebook and would like it to show the progress print as it’s running.  
If I run the following code in the terminal:

```julia
res = Optimization.solve(prob,BFGS(); callback = callback, maxiters=4027)

```

Then I get a printout from the callback function every iteration, however, if I run the same thing in Pluto I have to wait until it’s done processing to see the output.

Is there any way to see it during processing?

Thank you!

---

<div class="post-metadata">

**Author:** ![ederag](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ederag/32/4106_2.png) [@ederag](https://discourse.julialang.org/u/ederag)\
**Post date:** [July 13, 2023, 1:59pm UTC](https://discourse.julialang.org/t/is-there-a-way-for-pluto-to-print-the-terminal-output-while-its-running/101576/2 "2023-07-13T13:59:02Z")

</div>

That feature request is tracked as

> <https://github.com/JuliaPluto/PlutoUI.jl/issues/49>
>
> Not sure if this is being discussed elsewhere, but I would be important to have …\`with\_terminal\` (or a macro version) that could print out in real-time (instead of all at once after execution).
> 
> E.g.
> \`\`\`julia
> with\_terminal() do
> for i in 1:10
> println(i)
> sleep(0.1)
> end
> end
> \`\`\`
> We'd want this to print \`1\` \`2\` etc. every 10th of a second and not all at once.
