# Logging from a Pluto notebook into the REPL from which it launched

**URL:** <https://discourse.julialang.org/t/logging-from-a-pluto-notebook-into-the-repl-from-which-it-launched/115269>\
**Category:** Pluto\
**Tags:** logging, pluto\
**Created:** [June 6, 2024, 7:46am UTC](https://discourse.julialang.org/t/logging-from-a-pluto-notebook-into-the-repl-from-which-it-launched/115269 "2024-06-06T07:46:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gdalle](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gdalle/32/27854_2.png) [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Post date:** [June 6, 2024, 7:46am UTC](https://discourse.julialang.org/t/logging-from-a-pluto-notebook-into-the-repl-from-which-it-launched/115269/1 "2024-06-06T07:46:16Z")

</div>

Is there a way for a Pluto notebook to print/log into the REPL from which I launched it? I would need that to track progress of notebook CI runs

---

<div class="post-metadata">

**Author:** ![disberd](https://avatars.discourse-cdn.com/v4/letter/d/8edcca/32.png) [@disberd](https://discourse.julialang.org/u/disberd)\
**Post date:** [June 6, 2024, 10:33am UTC](https://discourse.julialang.org/t/logging-from-a-pluto-notebook-into-the-repl-from-which-it-launched/115269/2 "2024-06-06T10:33:34Z")

</div>

I am not at the pc to try but setting this flag to false should work:

> <https://github.com/fonsp/Pluto.jl/blob/main/src%2FConfiguration.jl#L164>

---

<div class="post-metadata">

**Author:** ![gdalle](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gdalle/32/27854_2.png) [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Post date:** [June 6, 2024, 12:33pm UTC](https://discourse.julialang.org/t/logging-from-a-pluto-notebook-into-the-repl-from-which-it-launched/115269/3 "2024-06-06T12:33:30Z")

</div>

Thanks for the pointer.

Since I’m using [static-export-template](https://github.com/JuliaPluto/static-export-template/tree/main) I had to do a little more digging to modify the GitHub action, and I’m still stuck:

- The export action calls `PlutoSliderServer.github_action`:

> <https://github.com/JuliaPluto/static-export-template/blob/08c02436be3198f6e931b28fcda1bcd7e772f5d3/.github/workflows/ExportPluto.yaml#L54-L61>

- The function `github_action` is a shortcut for `export_directory`, which is itself a shortcut for `run_directory`. I can’t figure out if `run_directory` can accept the same kwargs as `Pluto.run`?

> <https://github.com/JuliaPluto/PlutoSliderServer.jl/blob/b0cbddd9e0215f1a952021685a3f95603175b856/src/PlutoSliderServer.jl#L175-L181>

---

<div class="post-metadata">

**Author:** ![Pangoraw](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pangoraw/32/24719_2.png) [@Pangoraw](https://discourse.julialang.org/u/Pangoraw)\
**Post date:** [June 6, 2024, 1:20pm UTC](https://discourse.julialang.org/t/logging-from-a-pluto-notebook-into-the-repl-from-which-it-launched/115269/4 "2024-06-06T13:20:28Z")

</div>

> I can’t figure out if `run_directory` can accept the same kwargs as `Pluto.run`?

You would need to prefix the keyword arguments with `Pluto_<option_type>_` ([here `option_type = evaluation`](https://github.com/fonsp/Pluto.jl/blob/92cd7f7af1ed8b3b20c334849a44d2d383600ed8/src/Configuration.jl#L277)) so:

```julia
PlutoSliderServer.github_action(".";
  Export_cache_dir="pluto_state_cache",
  Export_baked_notebookfile=false,
  Export_baked_state=false,
  Pluto_evaluation_capture_stdout=false,
  # more parameters can go here
)

```

There may need to enable `Pluto_evaluation_workspace_use_distributed_stdlib=true` since Malt (the new notebook process manager does not have stdout forwarding).

---

<div class="post-metadata">

**Author:** ![gdalle](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gdalle/32/27854_2.png) [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Post date:** [June 6, 2024, 2:42pm UTC](https://discourse.julialang.org/t/logging-from-a-pluto-notebook-into-the-repl-from-which-it-launched/115269/5 "2024-06-06T14:42:01Z")

</div>

Even locally with

```julia
Pluto.run(
    capture_stdout=false,
    workspace_use_distributed_stdlib=true
)

```

the print statements don’t display in my REPL. Anything else I might be missing?

EDIT: I was inside a `@progress` for loop from ProgressLogging.jl, removing the macro enabled the prints for some reason. Thanks for your help!
