fonsp / Pluto.jl

🎈 Simple reactive notebooks for Julia
https://plutojl.org/
MIT License
4.91k stars 284 forks source link

Automatically shut down inactive notebooks #2236

Open BioTurboNick opened 1 year ago

BioTurboNick commented 1 year ago

When using Pluto on a shared server, it's common for people to leave notebooks running after they don't need them.

It would be nice to be able to automatically close notebooks that have been idle for a set time. Perhaps through an argument passed to the run method.

Pangoraw commented 1 year ago

@pankgeorg is this something that can currently be built with Pluto events ?

pankgeorg commented 1 year ago

Yes of course! There are many events that can be used (like save or run) but what does idle mean? No bond interaction or no web view? The latter would be harder (but we could implement a new event, like OnZeroConnectedClients or something)

BioTurboNick commented 1 year ago

No bond interaction/no cells executed would be reasonable for my needs.