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

Use conda to set GAMMAPY_DATA env variable #4581

Closed
HealthyPear opened this issue Jun 14, 2023 · 2 comments · Fixed by #4597
Closed

Use conda to set GAMMAPY_DATA env variable #4581

HealthyPear opened this issue Jun 14, 2023 · 2 comments · Fixed by #4597
Assignees
Milestone

Comments

@HealthyPear
Copy link
Contributor

This is just a minor documentation suggestion.

Since the installation requires the use of conda, you might as well instruct the user to set any environment variable using conda itself for the environment specific to the gammapy version in use, instead of using the shell which is global,

$ curl -O https://gammapy.org/download/install/gammapy-1.1-environment.yml
$ conda env create -f gammapy-1.1-environment.yml
$ conda activate gammapy-1.1
$ gammapy download notebooks
$ gammapy download datasets
$ conda env config vars set GAMMAPY_DATA=$PWD/gammapy-datasets/1.1
$ conda activate gammapy-1.1
@github-actions
Copy link

Merci! We will respond to your issue shortly. In the meantime, try import gammapy; gammapy.song()

@registerrier
Copy link
Contributor

Thanks @HealthyPear . That's a very good suggestion.

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

Successfully merging a pull request may close this issue.

2 participants