-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Pythia Foundations Environment #56
Comments
We already have an Is the idea to create a simpler environment just containing run-time dependencies but excluding the |
Revisiting this... I just submitted a PR #70 to add jupyterlab to the environment, because I'm using this environment for authoring notebook content and I want to be able to run in the lab. It raises a question that I guess I'm not clear on: is our It's possible that we could maintain two different environments:
The list of Python packages would be the same in both envs. I would default to putting everything together in a single environment, but I wonder if others have different opinions about this. |
I'd vote for keeping the environments as consistent as possible across all sites, intended uses, etc. Simpler is better. |
So, one master environment to rule them all? Currently we have at least three different |
Not sure how practical it is, but it would be nice if there were a single conda environment for all of Pythia, whether you are a user or a contributor. |
I agree, from a use perspective. However I don't think we can get away from needing a Maybe it's possible to set up a dependabot service to automatically keep all the EDIT: I have no idea how to do this, it just sounds plausible. |
I mean, you could always download an But as a I look at things, I don't see a problem with having the 3 different ones. Those serve 3 different purposes:
It's entirely wasteful, slows things down, and opens more opportunities for breakage to have the portal and dataset CI builds download and set up an entire NumPy, Pandas, Scipy, etc. environment every time we update some dataset or tweak the entirely non-Python portal site. So I agree, favor simplicity--but I'd argue simplicity for keeping infrastructure working. You'd be amazed how often things break. Those environments are created a whole lot more often than (I hope) any of us are creating Pythia environments from scratch. Now, if there's not too much overhead, I'd be happy to see the |
Regarding the original part of having a separate |
Good points @dopplershift, although I would quibble that our portal site will not be entirely non-Python, as it is built with sphinx. But certainly won't need numpy, cartopy, etc. I think landing on the foundations |
Good points. The consistent environment.yml file between different repos is probably less important for users that won't be bouncing back and forth between repos as maintainers have to. Hopefully, the latter are more savvy and don't get tripped up by this (as much as I do:-) |
@dopplershift what's your advice on how best to keep an environment "up to date without breaking things"? When would we need to think about changing specific version requirements, such as =3.8 for python and <1.4 for sqlalchemy? |
@ktyle If I'm keeping an environment specification unbroken and up-to-date, I'm using Dependabot and pypi-style Unfortunately, for users to use such a file or files the store is more complicated, since you no longer have a single file with environment name, conda channels, and dependencies. I got really tired of PRs broken by unrelated changes from upstream package changes. Who knows, maybe this repo will be less sensitive than MetPy's suite of checks. |
Should we close this? |
Should we create a
.yaml
file with all the packages necessary to run through the Foundations course?The text was updated successfully, but these errors were encountered: