Scratch environment

When copy-pasting some code from discourse, I want to be able to using any-package-from-the-universe. One way I imagine might work is to create a scratch-pad environment where I ]add * all the packages I can. This way, I can start julia on that environment and be sure I can test whatever.

Is that a bad idea? How can I get it to actually add “all the packages”?

Personally I use the default (v1.0) environment for things like this. I have not felt a need to ]add * though, you build up the useful packages pretty quickly.

2 Likes

I’m slowly realizing that for testing things, adding everything is pretty useful. And since it’s not that memory intensive as the old Pkg.add() then why not do it? What is the disadvantage for having an environment like that?

You are assuming that all packages work perfectly fine together here, which they probably don’t. It does not take many days until you have installed the packages that you actually use, which seems better, than installing everything.

3 Likes