When I add a package in the repl I can see it in Jupyter and my editor, but not in Pluto. I hate to dupe packages and waste limited disk space. Is there any way to make Pluto coordinate?
youâre not duplicating packages because thereâs only one source code depository, what is maintained independently is Manifest.toml
which only records the environment.
Thanks. But why wonât Pluto recognize what I load in the REPL?
because each pluto notebook now records its own environment
https://github.com/fonsp/Pluto.jl/wiki/đ-Package-management
To add to jlingâs answer. You can activate an enviroment manually, e.g.
import Pkg; Pkg.activate()
. (Of course, this has disadvantages as well.)
See: Package-management advanced-set-up-an-environment-with-pkgactivate
The recommend way to use Pluto is not manually adding any package at all. Just type using MyPkg
or import MyPkg
and Pluto automatically takes care of installing packages and pinning versions for reproducibility.
You only need to manually add packages if they are not in a Registry (General or custom registry).