I think you need to disable in file
the Pkg.activate
cell. But I’m not totally clear on what your setup and goal is. See if either of these links help you:
Continuing the discussion from Transforming a Pluto notebook into a Julia package :
I’m having trouble figuring out what I need to do to use Pluto notebooks as source code, especially regarding the package environment and Pluto’s package manager.
Do I need PlutoDevMacros.jl and/or @skip_as_script? I see “skip_as_script” inside Pluto comments in the provided example notebooks, but I do not see the macro at all when viewed as a notebook. How did you add these special comments? Is there document…
I updated my package to go back to Pluto.
It’s actually very easy. Pluto notebooks are just .jl files after all, so they can be include-ed as src files in a package. Then you can export the Pluto notebook as a PDF or HTML, either manually or with PlutoSliderServer.jl.
The only trick is to disable Pluto’s own package manager in the notebook by including a cell with the following content and then choosing “disable in file” in the cell menu options.
begin
import Pkg
Pkg.activate(Base.current…