It is possible to use a particular environment in a Pluto notebook? i.e., using a package already installed in a particular environment?
In the VScode terminal, even when I start Pluto within a particular environment I do not have access to the package and versions already installed.
Not working:
pkg> activate example
Activating project at xxxxxxxxxxxxxxx
julia> Pluto.run()
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