Skip to content

Commit 11ae11f

Browse files
authored
Merge pull request #426 from carpentries-incubator/issue-346
Add a callout to remind learners to activate virtual env
2 parents 7589705 + c4cbb0c commit 11ae11f

File tree

4 files changed

+54
-0
lines changed

4 files changed

+54
-0
lines changed

episodes/21-automatically-testing-software.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,19 @@ improve the predictability of a software change,
4646
make development more productive,
4747
and help us produce code that works as expected and produces desired results.
4848

49+
::: callout
50+
51+
### Activate your virtual environment
52+
If it is not already active, make sure to activate your virtual environment, called `venv`,
53+
from the root of the software project directory:
54+
55+
```bash
56+
$ source venv/bin/activate # Mac or Linux
57+
$ source venv/Scripts/activate # Windows
58+
(venv) $
59+
```
60+
:::
61+
4962
## What Is Software Testing?
5063

5164
For the sake of argument, if each line we write has a 99% chance of being right,

episodes/31-software-requirements.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,27 @@ exercises: 15
2020

2121
::::::::::::::::::::::::::::::::::::::::::::::::::
2222

23+
## Introduction
24+
2325
The requirements of our software are the basis on which the whole project rests -
2426
if we get the requirements wrong, we will build the wrong software.
2527
However, it is unlikely that we will be able to determine all of the requirements upfront.
2628
Especially when working in a research context,
2729
requirements are flexible and may change as we develop our software.
2830

31+
::: callout
32+
33+
### Activate your virtual environment
34+
If it is not already active, make sure to activate your virtual environment, called `venv`,
35+
from the root of the software project directory:
36+
37+
```bash
38+
$ source venv/bin/activate # Mac or Linux
39+
$ source venv/Scripts/activate # Windows
40+
(venv) $
41+
```
42+
:::
43+
2944
## Types of Requirements
3045

3146
Requirements can be categorised in many ways,

episodes/41-code-review.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,19 @@ Software is often designed and built as part of a team,
2929
so in this episode we will be looking at how to manage the process of team software development
3030
and improve our code by engaging in code review process with other team members.
3131

32+
::: callout
33+
34+
### Activate your virtual environment
35+
If it is not already active, make sure to activate your virtual environment, called `venv`,
36+
from the root of the software project directory:
37+
38+
```bash
39+
$ source venv/bin/activate # Mac or Linux
40+
$ source venv/Scripts/activate # Windows
41+
(venv) $
42+
```
43+
:::
44+
3245
## Collaborative Code Development Models
3346

3447
The way a team provides contributions to a shared codebase depends on

episodes/51-managing-software.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,19 @@ it can be hard to keep track of what's done, or what needs doing,
3434
and particularly difficult to convey that to others
3535
in the team or share the responsibilities.
3636

37+
::: callout
38+
39+
### Activate your virtual environment
40+
If it is not already active, make sure to activate your virtual environment, called `venv`,
41+
from the root of the software project directory:
42+
43+
```bash
44+
$ source venv/bin/activate # Mac or Linux
45+
$ source venv/Scripts/activate # Windows
46+
(venv) $
47+
```
48+
:::
49+
3750
## Using GitHub to Manage Issues With Software
3851

3952
As a piece of software is used,

0 commit comments

Comments
 (0)