Skip to content

Commit 6408bdf

Browse files
authored
Merge pull request #242 from datacarpentry/update-python-setup
Update setup instructions for Python
2 parents efa1b55 + 3ac78c8 commit 6408bdf

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

learners/setup.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,12 @@ You will need to install Python, Jupyter, and some additional libraries.
3131
[Python](https://python.org) is a popular language for
3232
scientific computing, and great for general-purpose programming as
3333
well. For this workshop we use Python version 3.x.
34-
Installing all of its scientific packages individually can be
35-
a bit difficult, so we recommend an all-in-one installer.
36-
We will use Anaconda.
34+
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.
35+
We will use the _Miniforge_ distribution of Python.
3736

38-
### Anaconda
37+
### Python
3938

40-
Download and install [Anaconda](https://www.anaconda.com/download).
39+
Download and install [MiniForge](https://conda-forge.org/download/).
4140

4241
To create a new Conda environment, which includes the additional packages we will be using
4342
in this workshop, you will need the environment file (`environment.yml`) you downloaded in the data section.
@@ -58,7 +57,7 @@ conda activate AstronomicalData
5857

5958
We will test our environment setup using a test notebook (`test_setup.ipynb`) that you downloaded in the data section.
6059

61-
In a Terminal, Jupyter Prompt or Anaconda Prompt, make sure you are in the `student_download` directory.
60+
In a Terminal, Jupyter Prompt or MiniForge Prompt, make sure you are in the `student_download` directory.
6261
To start Jupyter, make sure you have activated your new conda environment, then run:
6362

6463
```
@@ -77,7 +76,7 @@ If they work and you get no error messages, **you are ready for the workshop**.
7776
## Why didn't the imports work?
7877

7978
Occasionally learners will need to take one additional step to make Jupyter run within the environment we have created.
80-
If your imports fail, close Jupyter by closing its terminal, and try running the following from your Anaconda prompt (
79+
If your imports fail, close Jupyter by closing its terminal, and try running the following from your MiniForge Prompt (
8180
Terminal or otherwise):
8281

8382
```

student_download/environment.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
name: AstronomicalData
22
channels:
3-
- default
43
- conda-forge
54
- astropy
65
dependencies:
7-
- python>=3.6
6+
- python>=3.11
87
- jupyter
98
- numpy
109
- matplotlib
@@ -14,4 +13,3 @@ dependencies:
1413
- scipy
1514
- astropy
1615
- astroquery
17-
- gala

0 commit comments

Comments
 (0)