JuliaPluto/Pluto.jl
View on GitHub`local function` works, but leads to multiple definitions error
Open
#3,545 opened on May 12, 2026
good first issue
Repository metrics
- Stars
- (5,295 stars)
- PR merge metrics
- (Avg merge 3d 17h) (16 merged PRs in 30d)
Description
A cell in pluto:
begin
local function f(x)
x^3
end
f(2)
end
This runs as expected and f is not available outside the begin-block, but if another cell also defines local function f(), I still get a Multiple definitions for f error.