JuliaPluto/Pluto.jl

`local function` works, but leads to multiple definitions error

Open

#3 545 ouverte le 12 mai 2026

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)Julia (5 295 stars) (329 forks)batch import
good first issue

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.

Guide contributeur