You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then in the terminal, navigate to the directory where you want to run JupyterLab, and run
68
+
the following command.
69
+
```
70
+
docker run --rm -v $(pwd):/home/jovyan/work -p 8888:8888 ubcdsci/r-dsci-100:20230724142640d8f06f jupyter lab
71
+
```
72
+
The terminal will then print some text as the Docker container starts. Once the text stops scrolling, find the
73
+
URL in your terminal that starts with `http://127.0.0.1:8888` (highlighted by the red box Figure \@ref(fig:ubuntu-docker-terminal)), and paste it into your browser to start JupyterLab.
74
+
75
+
```{r ubuntu-docker-terminal, echo = FALSE, fig.cap = "The terminal text after running the Docker container in Ubuntu. The red box indicates the URL that you should paste into your browser to open JupyterLab.", fig.retina = 2, out.width="100%"}
76
+
image_read("img/setup/ubuntu-docker.png") |>
77
+
image_crop("3632x2000")
78
+
```
79
+
80
+
More information on installing and running Docker on Ubuntu, as well as troubleshooting tips, can be found
81
+
[in the online Docker documetation](https://docs.docker.com/engine/install/ubuntu/).
Double-click Docker Desktop Installer.exe to run the installer.
92
+
93
+
If you haven’t already downloaded the installer (Docker Desktop Installer.exe), you can get it from Docker Hub. It typically downloads to your Downloads folder, or you can run it from the recent downloads bar at the bottom of your web browser.
94
+
95
+
When prompted, ensure the Use WSL 2 instead of Hyper-V option on the Configuration page is selected or not depending on your choice of backend.
96
+
97
+
If your system only supports one of the two options, you will not be able to select which backend to use.
98
+
99
+
Follow the instructions on the installation wizard to authorize the installer and proceed with the install.
100
+
101
+
When the installation is successful, click Close to complete the installation process.
102
+
103
+
If your admin account is different to your user account, you must add the user to the docker-users group. Run Computer Management as an administrator and navigate to Local Users and Groups > Groups > docker-users. Right-click to add the user to the group. Log out and log back in for the changes to take effect.
104
+
65
105
66
106
### MacOS
67
107
@@ -90,34 +130,49 @@ Use recommended settings (Requires password). This let’s Docker Desktop automa
90
130
Use advanced settings. You can then set the location of the Docker CLI tools either in the system or user directory, enable the default Docker socket, and enable privileged port mapping. See Settings, for more information and how to set the location of the Docker CLI tools.
91
131
Select Finish. If you have applied any of the above configurations that require a password in step 5, you are asked to enter your password to confirm.
If you haven’t already downloaded the installer (Docker Desktop Installer.exe), you can get it from Docker Hub. It typically downloads to your Downloads folder, or you can run it from the recent downloads bar at the bottom of your web browser.
149
+
### Ubuntu
104
150
105
-
When prompted, ensure the Use WSL 2 instead of Hyper-V option on the Configuration page is selected or not depending on your choice of backend.
151
+
First, we will install Git. Open the terminal and type the following commands:
106
152
107
-
If your system only supports one of the two options, you will not be able to select which backend to use.
153
+
```
154
+
sudo apt update
155
+
sudo apt install git
156
+
```
108
157
109
-
Follow the instructions on the installation wizard to authorize the installer and proceed with the install.
158
+
Next, visit the [Installation section of the JupyterLab Desktop homepage](https://github.com/jupyterlab/jupyterlab-desktop#installation).
159
+
Download and run the installer for Ubuntu/Debian.
160
+
To install the JupyterLab Git extension, run JupyterLab Desktop,
161
+
open a notebook, and run the following code in a cell:
162
+
```
163
+
%pip install --upgrade jupyterlab-git
164
+
```
165
+
Finally, we will install the IRkernel and R packages
110
166
111
-
When the installation is successful, click Close to complete the installation process.
167
+
TODO
112
168
113
-
If your admin account is different to your user account, you must add the user to the docker-users group. Run Computer Management as an administrator and navigate to Local Users and Groups > Groups > docker-users. Right-click to add the user to the group. Log out and log back in for the changes to take effect.
169
+
### Windows
170
+
171
+
TODO
114
172
115
-
### Running the worksheets without Docker (advanced users)
173
+
### MacOS
116
174
117
-
- Git
118
-
- miniconda
119
-
- JupyterLab
120
-
- jupyterlab-git extension
175
+
TODO
121
176
122
177
123
178
@@ -172,7 +227,7 @@ so that they are compatible with the exercise worksheets that accompany the book
172
227
> unixodbc
173
228
> ```
174
229
175
-
Finishing up installation
230
+
## Finishing up installation
176
231
177
232
It is good practice to restart all the programs you used when installing this
178
233
software stack before you proceed to doing your data analysis.
@@ -182,6 +237,7 @@ This will ensure all the software and settings you put in place are
0 commit comments