Using a particular environment with Pluto

You just need to use this command in the first cell of your Pluto Notebook (note that for this to work the notebook needs be saved in the same folder as the environment you want to access)

begin
	import Pkg
	Pkg.activate(".")
end

If you activate the environment in the VSCode REPL it has no effect on the Pluto Notebooks, you have to activate the local environment manually inside them.

1 Like