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
Copy file name to clipboardExpand all lines: setup.Rmd
+69-55Lines changed: 69 additions & 55 deletions
Original file line number
Diff line number
Diff line change
@@ -2,19 +2,15 @@
2
2
3
3
## Overview
4
4
5
-
Throughout this book, we have assumed that you are working on a web-based platform,
6
-
such as JupyterHub, which already has Jupyter, R, several R packages, and Git set up and ready to use.
7
-
In this chapter, you'll learn how to install all of that software on your own computer in case
8
-
you don't have a preconfigured JupyterHub available to you.
5
+
In this chapter, you'll learn how to install all of that software
6
+
needed to do this data science covered in this book on your own computer.
9
7
10
8
## Chapter learning objectives
11
9
12
10
By the end of the chapter, readers will be able to:
13
11
14
-
- install Git and the miniconda Python distribution
12
+
- install the Git version control software
15
13
- install and launch a local instance of JupyterLab with the R kernel
16
-
- download files from a JupyterHub for later local use
17
-
18
14
19
15
## Installing software on your own computer
20
16
@@ -25,41 +21,33 @@ we have created instructions for multiple operating systems.
25
21
In particular, the installation instructions below have been verified to work
26
22
on a computer that:
27
23
28
-
- runs one of the following operating systems: MacOS 10.15.X (Catalina); Ubuntu 20.04; Windows 10, version 2004.
24
+
- runs one of the following operating systems: Ubuntu 20.04, macOS Big Sur (version 11.4.x or 11.5.x), Windows 10 Professional, Enterprise or Education (version 2004, 20H2, or 21H1).
29
25
- can connect to networks via a wireless connection
30
26
- uses a 64-bit CPU
31
27
- uses English as the default language
32
28
33
-
**For macOS users only:** Apple recently changed the default shell in the terminal to Zsh.
34
-
However, the programs we need work better with the Bash shell. Thus, we recommend you change
35
-
the default shell to Bash by opening the terminal
36
-
([how-to video](https://youtu.be/5AJbWEWwnbY)) and typing:
37
-
38
-
```
39
-
chsh -s /bin/bash
40
-
```
41
-
42
-
You will have to quit all instances of open terminals and then restart the
43
-
terminal for this to take effect.
44
-
45
29
### Git
46
30
47
-
As shown in Chapter \@ref(Getting-started-with-version-control), Git is a very useful tool for version
48
-
controlling your projects, as well as sharing your work with others. Here's how to install Git on
31
+
As shown in Chapter \@ref(Getting-started-with-version-control),
32
+
Git is a very useful tool for version controlling your projects,
33
+
as well as sharing your work with others. Here's how to install Git on
49
34
the following operating systems:
50
35
51
36
**Windows:** To install
52
37
Git on Windows, go to <https://git-scm.com/download/win> and download the Windows
53
38
version of Git. Once the download has finished, run the installer and accept
54
39
the default configuration for all pages.
55
40
56
-
**MacOS:** To install Git on Mac OS, open the terminal and type the following command:
41
+
**MacOS:** To install Git on Mac OS,
42
+
open the terminal ([how-to video](https://youtu.be/5AJbWEWwnbY))
43
+
and type the following command:
57
44
58
45
```
59
46
xcode-select --install
60
47
```
61
48
62
-
**Ubuntu:** To install Git on Ubuntu, open the terminal and type the following commands:
49
+
**Ubuntu:** To install Git on Ubuntu, open the terminal
50
+
and type the following commands:
63
51
64
52
```
65
53
sudo apt update
@@ -69,33 +57,37 @@ sudo apt install git
69
57
70
58
### Miniconda
71
59
72
-
To run Jupyter notebooks on our computers, we will need to install the web-based platform JupyterLab.
60
+
To run Jupyter notebooks on our computers,
61
+
we will need to install the web-based platform JupyterLab.
73
62
But JupyterLab relies on Python; we can install this via
74
63
the [miniconda Python package distribution](https://docs.conda.io/en/latest/miniconda.html).
75
64
76
65
**Windows:** To install miniconda on Windows, download
77
-
the [Python 3.8 64-bit version from here](https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe).
78
-
Once the download has finished, run the installer and accept the default
79
-
configuration for all pages. After installation, you can open the Anaconda Prompt
66
+
the [latest Python 64-bit version from here](https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe).
67
+
Once the download has finished, run the installer
68
+
and accept the default configuration for all pages.
69
+
After installation, you can open the Anaconda Prompt
80
70
by opening the Start Menu and searching for the program called
81
-
"Anaconda Prompt (miniconda3)". When this opens, you will see a prompt similar to
71
+
"Anaconda Prompt (miniconda3)".
72
+
When this opens, you will see a prompt similar to
82
73
`(base) C:\Users\your_name`.
83
74
84
75
**MacOS:** To install miniconda on MacOS, download
85
-
the [Python 3.8 64-bit version from here](https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.pkg).
76
+
the [latest Python 64-bit version from here](https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.pkg).
86
77
After the download has finished, run the installer and accept the default
87
78
configuration for all pages.
88
79
89
80
**Ubuntu:** To install miniconda on Ubuntu, we first download
90
-
the [Python 3.8 64-bit version from here](https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh).
81
+
the [latest Python 64-bit version from here](https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh).
91
82
After the download has finished, open the terminal and execute the following
92
83
commands:
93
84
94
85
```
95
86
bash path/to/Miniconda3-latest-Linux-x86_64.sh
96
87
```
97
88
98
-
> Note: most often, this file is downloaded to the Downloads directory, and thus the command will look like this:
89
+
> Note: most often, this file is downloaded to the Downloads directory,
0 commit comments