Skip to content

Commit 8b4a064

Browse files
committed
markdown source builds
Auto-generated via `{sandpaper}` Source : 14f2e75 Branch : main Author : Ben Companjen <ben@companjen.name> Time : 2025-04-01 09:40:34 +0000 Message : Merge pull request #67 from datacarpentry/update-python-setup Rewrite Python setup instructions for miniforge
1 parent 5d4bd66 commit 8b4a064

5 files changed

Lines changed: 80 additions & 1182 deletions

File tree

config.yaml

Lines changed: 0 additions & 82 deletions
This file was deleted.

files/setup-python.md

Lines changed: 34 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -4,69 +4,58 @@
44

55
### Python and Jupyter Notebooks
66

7-
- [Python](https://python.org) is a popular language for
8-
scientific computing, and great for general-purpose programming as
9-
well. For this workshop we use Python version 3.x.
10-
Installing all of its scientific packages individually can be
11-
a bit difficult, so we recommend an all-in-one installer.
12-
We will use Anaconda or Miniconda.
13-
They both use [Conda](https://conda.io/en/latest/), the main difference is
14-
that Anaconda comes with a lot of packages pre-installed.
15-
With Miniconda you will need to install the required packages.
16-
We recommend using the Anaconda installation instructions.
17-
18-
:::::::::::::::: spoiler
19-
20-
## Anaconda installation
21-
22-
Download and install [Anaconda](https://www.anaconda.com/distribution/#download-section).
23-
Remember to choose the installer for Python 3.x.
24-
Anaconda does not include the plotting package plotnine. To install this package, open your terminal application and
25-
type:
7+
[Python](https://python.org) is a popular language for scientific computing, and great for general-purpose programming as well.
8+
For this workshop we use Python version 3.x.
9+
Installing all of its scientific packages individually can be a bit difficult, so we provide an environment file to help you take care of them all together.
10+
We will use the _Miniforge_ distribution of Python.
2611

27-
```bash
28-
conda install -c conda-forge plotnine
29-
```
30-
31-
:::::::::::::::::::::::::
32-
33-
:::::::::::::::: spoiler
12+
Please refer to the [Python section of the workshop website for installation instructions](https://carpentries.github.io/workshop-template/install_instructions/#python).
3413

35-
## Miniconda installation
14+
#### Launching Jupyter
3615

37-
Miniconda is a "light" version of Anaconda. If you install and use Miniconda
38-
you will also need to install the workshop packages.
16+
:::::::::::::::::::::::::::::::::::::::::: spoiler
3917

40-
Download and install [Miniconda](https://docs.conda.io/en/latest/miniconda.html)
41-
following the instructions. Remember to choose the installer for
42-
Python 3.x.
18+
##### Windows
4319

44-
From your terminal application, type:
20+
After following the instructions above, search for the application 'Miniforge Prompt' and open it.
21+
Type the following commands, pressing <kbd>Enter</kbd> after each one:
4522

4623
```bash
47-
conda list
24+
conda activate carpentries
25+
jupyter notebook
4826
```
4927

50-
To install the packages we'll be using in the workshop, type:
28+
::::::::::::::::::::::::::::::::::::::::::::::::::
29+
30+
:::::::::::::::::::::::::::::::::::::::::: spoiler
31+
32+
##### MacOS
33+
34+
After following the instructions above, open the Terminal application (inside Applications/Utilities).
35+
Type the following commands, pressing <kbd>Enter</kbd> after each one:
5136

5237
```bash
53-
conda install -y numpy pandas matplotlib jupyter
54-
conda install -c conda-forge plotnine
38+
conda activate carpentries
39+
jupyter notebook
5540
```
41+
::::::::::::::::::::::::::::::::::::::::::::::::::
42+
43+
:::::::::::::::::::::::::::::::::::::::::: spoiler
5644

57-
:::::::::::::::::::::::::
45+
##### Linux
5846

59-
After installing either Anaconda or Miniconda and the workshop packages,
60-
launch a Jupyter notebook by typing this command from the terminal:
47+
After following the instructions above, search for the application 'Miniforge Prompt' and open it.
48+
Type the following commands, pressing <kbd>Enter</kbd> after each one:
6149

6250
```bash
51+
conda activate carpentries
6352
jupyter notebook
6453
```
6554

66-
The notebook should open automatically in your browser. If it does not or you
67-
wish to use a different browser, open this link: [http://localhost:8888](https://localhost:8888).
68-
69-
For a brief introduction to Jupyter Notebooks, please consult our
70-
[Introduction to Jupyter Notebooks](https://datacarpentry.org/python-ecology-lesson/jupyter_notebooks) page.
55+
::::::::::::::::::::::::::::::::::::::::::::::::::
7156

57+
The notebook should open automatically in your browser.
58+
If it does not or you wish to use a different browser, open this link: [http://localhost:8888](https://localhost:8888).
7259

60+
For a brief introduction to Jupyter Notebooks, please consult our
61+
[Introduction to Jupyter Notebooks](https://datacarpentry.org/python-ecology-lesson/jupyter_notebooks/) page.

md5sum.txt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
"file" "checksum" "built" "date"
2-
"CODE_OF_CONDUCT.md" "d4d213107229d04d444bd8f94cbe2c42" "site/built/CODE_OF_CONDUCT.md" "2025-03-25"
3-
"LICENSE.md" "9d622b076c6b30147b938bca87261e63" "site/built/LICENSE.md" "2025-03-25"
4-
"config.yaml" "b36da743462bb121d2ee6cf971df29e7" "site/built/config.yaml" "2025-03-25"
5-
"index.md" "f351c7df9717e28e0423a6aa2bb9c3eb" "site/built/index.md" "2025-03-25"
6-
"setup-python-workshop.Rmd" "c3a2be3d4c8c10528c9491900e33ee81" "site/built/setup-python-workshop.md" "2025-03-25"
7-
"setup-r-workshop.Rmd" "c23b6dad11ac5be31cb23d9024071567" "site/built/setup-r-workshop.md" "2025-03-25"
8-
"instructors/instructor-notes.md" "468465e1b56a50166605f81d9ed5314e" "site/built/instructor-notes.md" "2025-03-25"
9-
"learners/data.md" "97b5977eefc34fa0201e207ff91b2c1e" "site/built/data.md" "2025-03-25"
10-
"learners/reference.md" "2553d595f9e55dc1079cf381f018b137" "site/built/reference.md" "2025-03-25"
11-
"learners/setup.Rmd" "a6069412819fea8e461ae137447dd361" "site/built/setup.md" "2025-03-25"
12-
"profiles/learner-profiles.md" "60b93493cf1da06dfd63255d73854461" "site/built/learner-profiles.md" "2025-03-25"
13-
"renv/profiles/lesson-requirements/renv.lock" "0a41fb80ddd957186bbdb651ea1d5d50" "site/built/renv.lock" "2025-03-25"
2+
"CODE_OF_CONDUCT.md" "d4d213107229d04d444bd8f94cbe2c42" "site/built/CODE_OF_CONDUCT.md" "2025-04-01"
3+
"LICENSE.md" "9d622b076c6b30147b938bca87261e63" "site/built/LICENSE.md" "2025-04-01"
4+
"config.yaml" "b36da743462bb121d2ee6cf971df29e7" "site/built/config.yaml" "2025-04-01"
5+
"index.md" "f351c7df9717e28e0423a6aa2bb9c3eb" "site/built/index.md" "2025-04-01"
6+
"setup-python-workshop.Rmd" "d344a34485b192e4f577e2cb28e88f6b" "site/built/setup-python-workshop.md" "2025-04-01"
7+
"setup-r-workshop.Rmd" "c23b6dad11ac5be31cb23d9024071567" "site/built/setup-r-workshop.md" "2025-04-01"
8+
"instructors/instructor-notes.md" "468465e1b56a50166605f81d9ed5314e" "site/built/instructor-notes.md" "2025-04-01"
9+
"learners/data.md" "97b5977eefc34fa0201e207ff91b2c1e" "site/built/data.md" "2025-04-01"
10+
"learners/reference.md" "2553d595f9e55dc1079cf381f018b137" "site/built/reference.md" "2025-04-01"
11+
"learners/setup.Rmd" "a6069412819fea8e461ae137447dd361" "site/built/setup.md" "2025-04-01"
12+
"profiles/learner-profiles.md" "60b93493cf1da06dfd63255d73854461" "site/built/learner-profiles.md" "2025-04-01"
13+
"renv/profiles/lesson-requirements/renv.lock" "b8c301a42f0a137c4901104c05364fea" "site/built/renv.lock" "2025-04-01"

0 commit comments

Comments
 (0)