Pluto.jl icon indicating copy to clipboard operation
Pluto.jl copied to clipboard

Use scratch space for notebook package environment directory

Open fonsp opened this issue 9 months ago • 1 comments

The directory where Project.toml + Manifest.toml is (secretly) stored for a running notebook is current a mktempdir() folder. This PR uses Scratch.jl for that, to fix #2641

Try this Pull Request!

Open Julia and type:

julia> import Pkg
julia> Pkg.activate(temp=true)
julia> Pkg.add(url="https://github.com/fonsp/Pluto.jl", rev="scratch-for-notebook-env")
julia> using Pluto

fonsp avatar Feb 13 '25 13:02 fonsp

This can still lead to issues when running a notebook for more than 7 days...

fonsp avatar Feb 14 '25 08:02 fonsp

This needs an async loop to "refresh" all current scratch spaces...

fonsp avatar Sep 23 '25 08:09 fonsp