Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment (anaconda, pipenv, virtual env) needed for the notebooks? #11

Open
rcaneill opened this issue Mar 18, 2021 · 9 comments
Open

Comments

@rcaneill
Copy link

I wanted to rework the NEMO example (fix the typos, and reshape some stuff now that I am more confident with xgcm) and I am wondering, what environment should I use? Previously I used the environment.yml provided in xgcm (for readthedocs), is it still the same case now?
I feel lost between all the environments + the pangeo gallery.
Thanks!

@jbusecke
Copy link
Collaborator

@rcaneill Thanks for the initiative! I would use the environment in the docs/environment.yml. If that proves unreliable I will look into it that we have a separate one over here!

@jbusecke
Copy link
Collaborator

Oh and to build it with conda, just use conda env create -f docs/environment.yml. Let me know if there are any issues I can help with.

@rcaneill
Copy link
Author

Is this normal that xgcm is not provided in the docs/environment.yml? I thought I would just need to create the conda environment, activate it and voilà, but the notebooks can't be run due to a ModuleNotFoundError: No module named xgcm.
I can of course install it by hand, but did I jut missed something?

@jbusecke
Copy link
Collaborator

In all the environments you always have to install xgcm manually using pip install -e . (from the root folder). I should probably add that to the contributor guide.

@rcaneill
Copy link
Author

Great thanks!

@jbusecke
Copy link
Collaborator

Does this edit make it more transparent?

xgcm/xgcm#317

@rcaneill
Copy link
Author

Yes very good thanks. I think it may also be a nice idea to add a link to the xgcm contribute page on the xgcm-example README.

@jbusecke
Copy link
Collaborator

Ok cool. Will do that right away.

@jbusecke
Copy link
Collaborator

jbusecke commented Mar 23, 2021

I added a little blurb in #12. Thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants