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

Added a new environment installation workflow using only the GUI #171

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions learners/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,16 @@ If you run into any difficulties, please request help before the workshop begins

:::::::::::::::::::::::::

### Setting up the workshop environment from Anaconda
After installing Anaconda follow the steps below:
1. Open [https://raw.githubusercontent.com/carpentries-incubator/geospatial-python/main/files/environment.yaml][https://raw.githubusercontent.com/carpentries-incubator/geospatial-python/main/files/environment.yaml] in your web browser, right-click on the page, and select Save As... Keep the default name and click Save.
2. Open Anaconda-Navigator and click the **Environments** tab on the left of the GUI.
3. Then while on the **Environments** tab, from the bottom of the GUI click **Import**.
4. From the popup that appears, click the folder icon next to the local drive text field and choose the "environment.yaml" file downloaded earlier.
5. Accept the default name, then click the ""Import"" button from the popup and wait while the environment is created.
6. Now click the newly created **geospatial** environement. A play icon should appear next to it once activated.

### Setting up the workshop environment
### Setting up the workshop environment using conda

If Anaconda was properly installed, you should have access to the `conda`
command in your terminal (use the **Anaconda prompt** on **Windows**).
Expand Down Expand Up @@ -161,7 +169,17 @@ environment with `conda activate geospatial` to use the Python libraries
required for the lesson and to start JupyterLab, which is also installed in the
`geospatial` environment.

### Starting JupyterLab
### Starting JupyterLab from Anaconda-Navigator
With the **geospatial** virtual environment selected from the **Environements** tab:
Click the **Home** tab and then click the Launch button beneath JupyterLab.

Once you have launched JupyterLab, create a new Python 3 notebook, type the following code snippet in a cell and press the "Play" button:

```python
import rioxarray
```

### Starting JupyterLab from the Command Line

In order to follow the lesson, you should launch JupyterLab. After activating the
geospatial conda environment, enter the following command in your terminal (use the **Anaconda prompt** on **Windows**):
Expand Down
Loading