@@ -195,7 +195,8 @@ found in [the online Docker documentation](https://docs.docker.com/desktop/insta
195
195
### Ubuntu
196
196
197
197
** Installation** To install Docker on Ubuntu, open the terminal and enter the following five commands.
198
- ```
198
+ ``` {code-cell}
199
+ :tags: ["remove-output"]
199
200
sudo apt update
200
201
sudo apt install ca-certificates curl gnupg
201
202
curl -fsSL https://get.docker.com -o get-docker.sh
@@ -207,7 +208,8 @@ sudo sh get-docker.sh
207
208
and look for the line ` FROM ubcdsci/py-dsci-100: ` followed by a tag consisting of a sequence of numbers and letters.
208
209
Then in the terminal, navigate to the directory where you want to run JupyterLab, and run
209
210
the following command, replacing ` TAG ` with the * tag* you found earlier.
210
- ```
211
+ ``` {code-cell}
212
+ :tags: ["remove-output"]
211
213
docker run --rm -v $(pwd):/home/jovyan/work -p 8888:8888 ubcdsci/py-dsci-100:TAG jupyter lab
212
214
```
213
215
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.
283
285
284
286
285
287
In this terminal, run the following commands:
286
- ```
288
+ ``` {code-cell}
289
+ :tags: ["remove-output"]
287
290
pip install --upgrade jupyterlab-git
288
291
conda env update --file https://raw.githubusercontent.com/UBC-DSCI/data-science-a-first-intro-python-worksheets/main/environment.yml
289
292
```
@@ -304,7 +307,8 @@ correctly set up and ready for use.
304
307
Open the terminal ([ how-to video] ( https://youtu.be/5AJbWEWwnbY ) )
305
308
and type the following command:
306
309
307
- ```
310
+ ``` {code-cell}
311
+ :tags: ["remove-output"]
308
312
xcode-select --install
309
313
```
310
314
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.
326
330
327
331
** Installation** First, we will install Git for version control.
328
332
Open the terminal and type the following commands:
329
- ```
333
+ ``` {code-cell}
334
+ :tags: ["remove-output"]
330
335
sudo apt update
331
336
sudo apt install git
332
337
```
333
338
Next, visit the [ "Installation" section of the JupyterLab Desktop homepage] ( https://github.com/jupyterlab/jupyterlab-desktop#installation ) .
334
339
Download the ` JupyterLab-Setup-Debian.deb ` installer file for Ubuntu/Debian.
335
340
Open a terminal, navigate to where the installer file was downloaded, and run the command
336
- ```
341
+ ``` {code-cell}
342
+ :tags: ["remove-output"]
337
343
sudo dpkg -i JupyterLab-Setup-Debian.deb
338
344
```
339
345
Run JupyterLab Desktop using the command
340
- ```
346
+ ``` {code-cell}
347
+ :tags: ["remove-output"]
341
348
jlab
342
349
```
343
350
0 commit comments