Hey all, I am observing a weird behavior from Pluto. While trying to load the Bandits package (available at Bandits ), I realised the package was not declared in the registry. This forced me to add the command Pkg.add(url=“GitHub - rawls238/Bandits.jl: Implementation of multi-armed bandits in Julia”) to my notebook. Although it loads the Bandits package, it cannot load any other package with the “using” keyword. I must use Pkg.add() Is that expected behavior? Did I miss a configuration?
That’s how Pluto works. Either it automatically adds all packages before using
and removes them once the cell with using
is deleted, but you can only use registered packages, or you go with the general Pkg
mechanism.
A workaround is to create a local registry (see LocalRegistry.jl), register anything you need there, add it in REPL through pkg"registry add myregistry"
, and then Pluto can use packages registered there the same way as the packages from the General registry.