# Automating export of a currently running Pluto notebook to html

**URL:** <https://discourse.julialang.org/t/automating-export-of-a-currently-running-pluto-notebook-to-html/134357>\
**Category:** Pluto\
**Created:** [December 4, 2025, 2:37pm UTC](https://discourse.julialang.org/t/automating-export-of-a-currently-running-pluto-notebook-to-html/134357 "2025-12-04T14:37:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vvbond](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vvbond/32/10105_2.png) [@vvbond](https://discourse.julialang.org/u/vvbond)\
**Post date:** [December 4, 2025, 2:37pm UTC](https://discourse.julialang.org/t/automating-export-of-a-currently-running-pluto-notebook-to-html/134357/1 "2025-12-04T14:37:44Z")

</div>

I’m interested in automatic generation of html snapshots of a Pluto notebook I’m currently interacting with.

My use case is automatic generation of named html snapshot upon meeting a certain condition, e.g. successful data fit with interactively adjusted parameters. The PlutoSliderServer is therefore not quite suitable.

The intention here is to automate the existing export to html functionality to save a few clicks and avoid typing in new file names.

Is there a way to achieve this from a running Pluto notebook?

---

<div class="post-metadata">

**Author:** ![fonsp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fonsp/32/222349_2.png) [@fonsp](https://discourse.julialang.org/u/fonsp)\
**Post date:** [January 5, 2026, 10:31am UTC](https://discourse.julialang.org/t/automating-export-of-a-currently-running-pluto-notebook-to-html/134357/2 "2026-01-05T10:31:27Z")

</div>

Cool question! I think an approach might be to do this from inside your notebook.

You can request the current HTML export contents by making an HTTP request to:

```julia-auto
http://localhost:1234/notebookexport?id=....&secret=...

```

You can manually fill in the ID and Secret (these are different every time that you run the notebook), maybe with `PlutoUI.TextField`.

With `Base.download`, you can request the HTML contents and save it. You can use reactivity to do this automatically when you meet certain criteria.
