File tree Expand file tree Collapse file tree 4 files changed +101
-2
lines changed Expand file tree Collapse file tree 4 files changed +101
-2
lines changed Original file line number Diff line number Diff line change 1- # python-environments
2- Files for creating the Python environment used in the Geo-Python course
1+ # Using mamba to make the Geo-Python environment
2+
3+ This briefly describes how to install a Python virtual environment for the Geo-Python course.
4+
5+ 1 . Install miniconda from https://docs.conda.io/en/latest/miniconda.html
6+ 2 . Install mamba
7+ ``` bash
8+ conda install mamba -n base -c conda-forge
9+ ```
10+ 3. Clone the course Python environments from GitHub
11+ ` ` ` bash
12+ git clone https://github.com/geo-python/python-environments.git
13+ ` ` `
14+ 4. Change into the working directory with the cloned environment files
15+ ` ` ` bash
16+ cd python-environments
17+ ` ` `
18+ # # Creating the environment for students
19+ 1. Create the python environment using mamba
20+ ` ` ` bash
21+ mamba create -n geo-python-student
22+ mamba env update -n geo-python-student --file geo-python-student.yml
23+ ` ` `
24+ 2. Activate the new environment and update JupyterLab
25+ ` ` ` bash
26+ conda activate geo-python-student
27+ sh postBuild
28+ ` ` `
29+ # # Creating the environment for teachers
30+ 1. Create the python environment using mamba
31+ ` ` ` bash
32+ mamba create -n geo-python-teacher
33+ mamba env update -n geo-python-teacher --file geo-python-teacher.yml
34+ ` ` `
35+ 2. Activate the new environment and update JupyterLab
36+ ` ` ` bash
37+ conda activate geo-python-teacher
38+ sh postBuild
39+ ` ` `
Original file line number Diff line number Diff line change 1+ name : geo-python-student
2+ channels :
3+ - conda-forge
4+ - patrikhlobil
5+
6+ dependencies :
7+ # Core Python stuff
8+ - python==3.8.10
9+ - pip==21.2.4
10+
11+ # General scientific packages
12+ - numpy==1.21.2
13+ - pandas==1.3.2
14+
15+ # Plotting
16+ - matplotlib==3.4.3
17+ - imageio==2.9.0
18+ - patrikhlobil::pandas-bokeh==0.5
19+
20+ # Code testing
21+ - nose==1.3.7
22+
23+ # Jupyter environment
24+ - jupyterlab==3.1.10
25+ - jupyterlab-git==0.32.2
26+ - jupyterhub==1.4.2
27+ - notebook==6.4.3
28+ - ipython==7.27.0
29+ - ipykernel==6.3.1
30+
Original file line number Diff line number Diff line change 1+ name : geo-python-teacher
2+ channels :
3+ - conda-forge
4+ - patrikhlobil
5+
6+ dependencies :
7+ # Core Python stuff
8+ - python==3.8.10
9+ - pip==21.2.4
10+
11+ # General scientific packages
12+ - numpy==1.21.2
13+ - pandas==1.3.2
14+
15+ # Plotting
16+ - matplotlib==3.4.3
17+ - imageio==2.9.0
18+ - patrikhlobil::pandas-bokeh==0.5
19+
20+ # Code testing
21+ - nose==1.3.7
22+
23+ # Jupyter environment
24+ - jupyterlab==3.1.10
25+ - jupyterlab-git==0.32.2
26+ - jupyterhub==1.4.2
27+ - notebook==6.4.3
28+ - ipython==7.27.0
29+ - ipykernel==6.3.1
30+ - nbgrader
31+
Original file line number Diff line number Diff line change 1+ jupyter lab build --dev-build=False --minimize=False
You can’t perform that action at this time.
0 commit comments