How to tell if a Pluto notebook is being run in Pluto or from REPL?

There’s

if @isdefined PlutoRunner  # running inside Pluto
    ...
end
1 Like