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.md
+91-78Lines changed: 91 additions & 78 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,105 +23,123 @@ title: Setup
23
23
{: .prereq}
24
24
25
25
26
-
27
26
> ## Installing Python using Anaconda
27
+
>
28
28
> [Python][python] is a popular language for scientific computing, and great for
29
29
> general-purpose programming as well. Installing all of the scientific packages we use in the lesson
30
30
> individually can be a bit cumbersome, and therefore recommend the all-in-one
31
31
> installer [Anaconda][anaconda].
32
32
>
33
33
> Regardless of how you choose to install it, please make sure you install Python
34
-
> version 3.x (e.g., 3.6 is fine).
34
+
> version 3.x (e.g., 3.6 is fine).
35
35
{: .prereq}
36
36
37
-
### Windows - [Video tutorial][video-windows]
38
-
39
-
1. Open <https://www.anaconda.com/products/individual> in your web browser.
40
37
41
-
2. Download the Python 3 installer for Windows.
38
+
## Installing Anaconda
42
39
43
-
3. Double-click the executable and install Python 3 using the recommended settings. Make sure that **Register Anaconda as my default Python 3.x** option is checked - it should be in the latest version of Anaconda
1. Visit <https://www.anaconda.com/products/individual> in your web browser.
78
+
2. Download the Anaconda Python 3 installer for macOS.
79
+
These instructions assume that you use the graphical installer `.pkg` file.
80
+
3. Follow the Anaconda Python 3 installation instructions.
81
+
Make sure that the install location is set to "Install only for me"
82
+
so Anaconda will install its files locally, relative to your home directory.
83
+
Installing the software for all users tends to create problems in the long run
84
+
and should be avoided.
85
+
4. Verify the installation:
86
+
click the Launchpad icon in the Dock, type Terminal in the search field, then click Terminal.
87
+
A window should pop up where you can now type commands
88
+
such as checking your conda installation with:
51
89
52
-
3. Follow the Python 3 installation instructions. Make sure that the install location is set to "Install only for me" so Anaconda will install its files locally, relative to your home directory. Installing the software for all users tends to create problems in the long run and should be avoided.
## Opening a Conda-enabled Terminal and Verifying the Installation:
96
140
97
-
### Windows
98
-
Click Start, search, or select Anaconda Prompt from the menu. A window should pop up where you can now type commands such as checking your Conda installation with:
141
+
## Required Python Packages
99
142
100
-
~~~
101
-
conda --help
102
-
~~~
103
-
{: .language-bash}
104
-
105
-
### Mac OSX
106
-
107
-
Click the Launchpad icon in the Dock, type Terminal in the search field, then click Terminal.
108
-
A window should pop up where you can now type commands such as checking your conda installation with:
109
-
110
-
~~~
111
-
conda --help
112
-
~~~
113
-
{: .language-bash}
114
-
115
-
### Linux
116
-
This depends a bit on your Linux distribution, but often you will have an Applications listing in which you can select a Terminal icon you can click. A window should pop up where you can now type commands such as checking your conda installation with:
117
-
118
-
~~~
119
-
conda --help
120
-
~~~
121
-
{: .language-bash}
122
-
123
-
124
-
## Required Python Packages for this Workshop
125
143
The following are packages needed for this workshop:
126
144
127
145
* [Pandas](https://pandas.pydata.org/)
@@ -130,27 +148,22 @@ The following are packages needed for this workshop:
All packages apart from plotnine will have automatically been installed with Anaconda and we can use anaconda as a package manager to install the missing `plotnine` package:
134
-
You need to open up a *Terminal*, if you are using Mac OSX, or Linux (see instructions above), or launch an *anaconda-promt*, if you are using Windows. In your terminal window type the following:
151
+
All packages apart from `plotnine` will have automatically been installed with Anaconda
152
+
and we can use Anaconda as a package manager to install the missing `plotnine` package:
153
+
You need to open up a *Terminal*, if you are using Mac OSX, or Linux (see instructions above),
154
+
or launch an *anaconda-promt*, if you are using Windows. In your terminal window type the following:
135
155
136
156
~~~
137
157
conda install -y -c conda-forge plotnine
138
158
~~~
139
159
{: .language-bash}
140
160
141
-
This will then install the latest version of plotnine into your conda environment.
161
+
This will then install the latest version of plotnine into your conda environment.
142
162
143
-
## Installing other Packages (Not required)
144
-
If you want to install any additional packages, you can do so by opening a terminal window and type:
145
-
~~~
146
-
conda install -y package_name
147
-
~~~
148
-
{: .language-bash}
163
+
## Required packages: Miniconda
149
164
150
-
You may need to install the required packages in this way,
151
-
if you opted for installing Miniconda, instead of Anaconda.
152
-
Miniconda is a lightweight version of Anaconda. If you install and use Miniconda
153
-
you will also need to install the workshop packages manually in the following way:
165
+
Miniconda is a lightweight version of Anaconda. If you install Miniconda instead of Anaconda,
166
+
you need to install required packages manually in the following way:
0 commit comments