Skip to content

Commit b375901

Browse files
committed
merge in main
2 parents 07af4fb + 3f05db6 commit b375901

File tree

4 files changed

+27
-14
lines changed

4 files changed

+27
-14
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ repos:
2424
- id: blacken-docs
2525

2626
- repo: https://github.com/rbubley/mirrors-prettier
27-
rev: c0978107b2da0da11a13a8b4b912f12905890f3a # frozen: v3.5.2
27+
rev: 787fb9f542b140ba0b2aced38e6a3e68021647a3 # frozen: v3.5.3
2828
hooks:
2929
- id: prettier
3030
files: \.(css|md|yml|yaml)

content/_index.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ body = '''
2020
Learn recommended tools and approaches for developing Scientific Python libraries.
2121
'''
2222

23+
[[item]]
24+
type = 'card'
25+
title = 'Lectures Notes'
26+
link = 'https://lectures.scientific-python.org'
27+
body = '''
28+
Numerical computing lectures that teach key packages in the scientific Python ecosystem, such as NumPy, SciPy, Matplotlib, scikit-learn, and scikit-image.
29+
'''
30+
2331
[[item]]
2432
type = 'card'
2533
title = 'Documentation Guide'

content/contributors/setup/install.md

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ itself installed. There are two, largely equivalent, ways of doing
77
that, and we describe both below.
88

99
If you have a working version of Python on your system already (check
10-
by running `python3`), you can skip to setting up a virtual environment.
10+
by running `python` at the terminal), you can skip to "Segment 1: Set up a virtual environment".
1111

1212
## Segment 1: Python.org
1313

@@ -20,23 +20,16 @@ Download the installer from https://www.python.org/downloads/.
2020
A virtual environment is a workspace into which you can install Python
2121
libraries, separate from what is being used by your operating system.
2222

23-
Create a new virtual environment in a directory called
24-
`py3`:
23+
Here, we create a new virtual environment in a directory `science` (you can use whichever name you prefer!):
2524

2625
```
27-
python -m venv py3
26+
python -m venv science
2827
```
2928

30-
Start using it as follows:
29+
Start using it by activating it as follows:
3130

3231
```
33-
source py3/bin/activate
34-
```
35-
36-
Also, make sure you have `pip` installed---that is Python's default package manager:
37-
38-
```
39-
python -m ensurepip
32+
source science/bin/activate
4033
```
4134

4235
You are now ready to install Scientific Python packages using `pip`! For example:
@@ -56,6 +49,12 @@ In [2]: np.linspace(0, 10, 5)
5649
Out[2]: array([ 0. , 2.5, 5. , 7.5, 10. ])
5750
```
5851

52+
Remember to re-activate your environment every time you open a new terminal, using:
53+
54+
```
55+
source science/bin/activate
56+
```
57+
5958
## Segment 2: Miniforge
6059

6160
Miniforge is a small Python distribution based around the conda
@@ -112,3 +111,9 @@ In [1]: import numpy as np
112111
In [2]: np.linspace(0, 10, 5)
113112
Out[2]: array([ 0. , 2.5, 5. , 7.5, 10. ])
114113
```
114+
115+
Remember to re-activate your environment every time you open a new terminal:
116+
117+
```
118+
conda activate science
119+
```

external-content/cookie

Submodule cookie updated 39 files

0 commit comments

Comments
 (0)