Skip to content

Commit f5138a0

Browse files
format non-running code blocks in setup
1 parent 88abd70 commit f5138a0

File tree

2 files changed

+32
-25
lines changed

2 files changed

+32
-25
lines changed

source/_toc.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
format: jb-book
22
root: index.md
33
parts:
4-
- caption: Front Matter
5-
chapters:
6-
- file: preface-text.md
7-
- file: foreword-text.md
8-
- file: acknowledgements.md
9-
- file: authors.md
4+
#- caption: Front Matter
5+
# chapters:
6+
# - file: preface-text.md
7+
# - file: foreword-text.md
8+
# - file: acknowledgements.md
9+
# - file: authors.md
1010
- caption: Chapters
1111
numbered: 3
1212
chapters:
13-
- file: intro.md
14-
- file: reading.md
15-
- file: wrangling.md
16-
- file: viz.md
17-
- file: classification1.md
18-
- file: classification2.md
19-
- file: regression1.md
20-
- file: regression2.md
21-
- file: clustering.md
22-
- file: inference.md
23-
- file: jupyter.md
24-
- file: version-control.md
13+
#- file: intro.md
14+
#- file: reading.md
15+
#- file: wrangling.md
16+
#- file: viz.md
17+
#- file: classification1.md
18+
#- file: classification2.md
19+
#- file: regression1.md
20+
#- file: regression2.md
21+
#- file: clustering.md
22+
#- file: inference.md
23+
#- file: jupyter.md
24+
#- file: version-control.md
2525
- file: setup.md

source/setup.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ found in [the online Docker documentation](https://docs.docker.com/desktop/insta
195195
### Ubuntu
196196

197197
**Installation** To install Docker on Ubuntu, open the terminal and enter the following five commands.
198-
```
198+
```{code-cell}
199+
:tags: ["remove-output"]
199200
sudo apt update
200201
sudo apt install ca-certificates curl gnupg
201202
curl -fsSL https://get.docker.com -o get-docker.sh
@@ -207,7 +208,8 @@ sudo sh get-docker.sh
207208
and look for the line `FROM ubcdsci/py-dsci-100:` followed by a tag consisting of a sequence of numbers and letters.
208209
Then in the terminal, navigate to the directory where you want to run JupyterLab, and run
209210
the following command, replacing `TAG` with the *tag* you found earlier.
210-
```
211+
```{code-cell}
212+
:tags: ["remove-output"]
211213
docker run --rm -v $(pwd):/home/jovyan/work -p 8888:8888 ubcdsci/py-dsci-100:TAG jupyter lab
212214
```
213215
The terminal will then print some text as the Docker container starts. Once the text stops scrolling, find the
@@ -283,7 +285,8 @@ A JupyterLab Desktop session, showing the Terminal option at the bottom.
283285

284286

285287
In this terminal, run the following commands:
286-
```
288+
```{code-cell}
289+
:tags: ["remove-output"]
287290
pip install --upgrade jupyterlab-git
288291
conda env update --file https://raw.githubusercontent.com/UBC-DSCI/data-science-a-first-intro-python-worksheets/main/environment.yml
289292
```
@@ -304,7 +307,8 @@ correctly set up and ready for use.
304307
Open the terminal ([how-to video](https://youtu.be/5AJbWEWwnbY))
305308
and type the following command:
306309

307-
```
310+
```{code-cell}
311+
:tags: ["remove-output"]
308312
xcode-select --install
309313
```
310314
Next, visit the ["Installation" section of the JupyterLab Desktop homepage](https://github.com/jupyterlab/jupyterlab-desktop#installation).
@@ -326,18 +330,21 @@ the various Python software packages needed for the worksheets.
326330

327331
**Installation** First, we will install Git for version control.
328332
Open the terminal and type the following commands:
329-
```
333+
```{code-cell}
334+
:tags: ["remove-output"]
330335
sudo apt update
331336
sudo apt install git
332337
```
333338
Next, visit the ["Installation" section of the JupyterLab Desktop homepage](https://github.com/jupyterlab/jupyterlab-desktop#installation).
334339
Download the `JupyterLab-Setup-Debian.deb` installer file for Ubuntu/Debian.
335340
Open a terminal, navigate to where the installer file was downloaded, and run the command
336-
```
341+
```{code-cell}
342+
:tags: ["remove-output"]
337343
sudo dpkg -i JupyterLab-Setup-Debian.deb
338344
```
339345
Run JupyterLab Desktop using the command
340-
```
346+
```{code-cell}
347+
:tags: ["remove-output"]
341348
jlab
342349
```
343350

0 commit comments

Comments
 (0)