How to import a local package in Pluto environment? #1353
-
I want to use a package that i am working on in the pluto environment but I can not import it because pluto fails to recognize the package. Due to this I have to activate the base environment every time I want to use the package. Is there a way around it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Unfortunately it is currently not straightforward to use the Pluto PkgManager with packages that are local or not registered. If you are planning to use Pluto to debug interactivly your own local package, I think it is still more convenient to just switch to standard environment without the pluto package manager. |
Beta Was this translation helpful? Give feedback.
-
I have what I think is a relate issue. I define a module in one cell. I can then use that module if I use names scoped by it. But I can't import it into the top-level scope. If I then make a new cell with a different module defined, that new module can't see the first module at all as far as I can tell. |
Beta Was this translation helpful? Give feedback.
Unfortunately it is currently not straightforward to use the Pluto PkgManager with packages that are local or not registered.
I also work on some local packages that need to share with a few colleagues so I set up a privaty registry hosted on github with LocalRegistry.jl and use to be able to use my non-registered package without losing the convenience of the built-in package manager.
If you are planning to use Pluto to debug interactivly your own local package, I think it is still more convenient to just switch to standard environment without the pluto package manager.