You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Welcome to the Earth Analytics Environment Repository! Here you will find a conda envt that can be installed on your computer using a `.yaml` file. You will also find a docker image that can be used to actually run the environment in a containerized environment.
Welcome to the Earth Analytics `Python` Environment Repository! Here you will find a conda environment that can be installed on your computer using a `.yaml` file. You will also find a docker image that can be used to actually run the environment in a containerized environment.
11
+
8
12
9
13
## Contributors:
10
14
11
-
* Leah A. Wasser
12
-
* Tim Head
13
-
* Chris Holdgraf
14
-
* Max Joseph
15
+
* Leah A. Wasser (@lwasser)
16
+
* Filipe fernandes (@ocefpaf)
17
+
* Tim Head (@betatim)
18
+
* Chris Holdgraf (@choldgraf)
19
+
* Max Joseph (@mbjoseph)
15
20
* Martha Morrissey
16
21
17
22
## Getting started with the Conda Environment
18
23
19
24
### 1. Install the Earth Lab Conda Environment on your Local Computer.
20
25
21
-
To begin, install git and conda for Python 3.x (we suggest 3.6).
26
+
To begin, install `git` and `conda` for Python 3.x (we suggest 3.6).
We recommend installing everything using the with `conda-forge` channel.
39
+
40
+
### Quick Start: Setup Your Environment
41
+
42
+
The tutorial above will provide you with more detailed setup instructions.
43
+
But here are the cliff notes:
44
+
45
+
To begin, install the environment using:
35
46
36
47
`conda env create -f environment.yml`
37
48
38
-
* Note that it takes a bit of time to run this setup
39
-
* Also note that for the code above to work, you need to be in the directory where the `environment.yml` file lives (ex: cd earth-analytics-python-env).
49
+
This will take a bit of time to run.
50
+
51
+
* Also note that for the code above to work, you need to be in the directory where the `environment.yml` file lives so CD to that directory first
52
+
53
+
`$ cd earth-analytics-python-env`
54
+
55
+
56
+
### Update Your EA Environment from the YAML File
57
+
58
+
You can update your environment at any time using:
40
59
41
-
To update this environment from a yaml file use:
42
60
`conda env update -f environment.yml`
43
61
44
62
To manage your conda environments, use the following commands:
@@ -51,20 +69,6 @@ To manage your conda environments, use the following commands:
51
69
[Conda 4.6 and later versions (all operating systems):](https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html)
52
70
```
53
71
conda activate earth-analytics-python
54
-
```
55
-
56
-
[Conda versions prior to 4.6:](https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html)
57
-
58
-
On Mac or Linux:
59
-
60
-
```
61
-
source activate earth-analytics-python
62
-
```
63
-
64
-
On Windows:
65
-
66
-
```
67
-
activate earth-analytics-python
68
72
```
69
73
70
74
The environment name is `earth-analytics-python` as
@@ -74,8 +78,6 @@ defined in the `environment.yml` file.
To run a docker container you need to do the following:
80
82
81
83
1.[Install docker](https://docs.docker.com/install/) and make sure it is running.
@@ -108,19 +110,6 @@ into your browser to run jupyter with the earth analytics environment installed!
108
110
If you wish to update the earth analytics environment, do the following.
109
111
110
112
1. make a **PR** with changes to master
111
-
2.**think** about your changes - don't do silly things or break things :)
112
-
3.**merge** the PR into the master branch
113
-
4. Check & wait till [Dockerhub](https://hub.docker.com/r/earthlab/earth-analytics-python-env/tags/) has built the image for the merging of the **PR** you can see builds in progress, [here](https://hub.docker.com/r/earthlab/earth-analytics-python-env/builds/)
114
-
5. Finally, once the build is complete you can then you can update hub-ops repo with the newly tagged image.
115
-
116
-
## Important Notes
117
-
If the update the `earthpy` package, you must specify the commit number that you
118
-
wish to build `earthpy` against. This will ensure that the docker image
119
-
automagically rebuilds using the latest version of `earthpy`
120
-
121
-
like this: `- git+https://github.com/earthlab/earthpy.git@283683affac9e46b1690c7913ebd2621c82ba43a`
122
-
123
-
This PR should kick off a rebuild of the docker image. But that docker image will
124
-
not be usable until it's built off of the master branch.
113
+
1. An code admin will **merge** the PR into the master branch
114
+
1. Check & wait till [Dockerhub](https://hub.docker.com/r/earthlab/earth-analytics-python-env/tags/) has built the image for the merging of the **PR** you can see builds in progress, [here](https://hub.docker.com/r/earthlab/earth-analytics-python-env/builds/)
125
115
126
-
NOTE 2: The DockerHub build actually takes forever and ever. So it's best to check out the build status rather than assuming it's built.
0 commit comments