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
{{ message }}
Repository navigation
Commit 05801da
Browse filesBrowse the repository at this point in the historyBrowse files
Fundamental matrix and array processing capabilities are provided by the excellent [NumPy](http://www.numpy.org/) library.
@@ -218,8 +214,7 @@ See them all [here](http://docs.scipy.org/doc/scipy/reference/index.html).
218
214
219
215
### Graphics
220
216
221
-
```{index}
222
-
single: Matplotlib
217
+
```{index} single: Matplotlib
223
218
```
224
219
225
220
The most popular and comprehensive Python library for creating figures and graphs is [Matplotlib](http://matplotlib.org/), with functionality including
@@ -258,8 +253,7 @@ Other graphics libraries include
258
253
259
254
It's useful to be able to manipulate symbolic expressions, as in Mathematica or Maple.
260
255
261
-
```{index}
262
-
single: SymPy
256
+
```{index} single: SymPy
263
257
```
264
258
265
259
The [SymPy](http://www.sympy.org/) library provides this functionality from within the Python shell.
@@ -315,8 +309,7 @@ the last few years.
315
309
316
310
#### Pandas
317
311
318
-
```{index}
319
-
single: Pandas
312
+
```{index} single: Pandas
320
313
```
321
314
322
315
One of the most popular libraries for working with data is [pandas](http://pandas.pydata.org/).
@@ -343,26 +336,22 @@ df.mean()
343
336
344
337
#### Other Useful Statistics Libraries
345
338
346
-
```{index}
347
-
single: statsmodels
339
+
```{index} single: statsmodels
348
340
```
349
341
350
342
*[statsmodels](http://statsmodels.sourceforge.net/) --- various statistical routines
351
343
352
-
```{index}
353
-
single: scikit-learn
344
+
```{index} single: scikit-learn
354
345
```
355
346
356
347
*[scikit-learn](http://scikit-learn.org/) --- machine learning in Python (sponsored by Google, among others)
357
348
358
-
```{index}
359
-
single: pyMC
349
+
```{index} single: pyMC
360
350
```
361
351
362
352
*[pyMC](http://pymc-devs.github.io/pymc/) --- for Bayesian data analysis
363
353
364
-
```{index}
365
-
single: pystan
354
+
```{index} single: pystan
366
355
```
367
356
368
357
*[pystan](https://pystan.readthedocs.org/en/latest/) Bayesian analysis based on [stan](http://mc-stan.org/)
@@ -371,8 +360,7 @@ single: pystan
371
360
372
361
Python has many libraries for studying graphs.
373
362
374
-
```{index}
375
-
single: NetworkX
363
+
```{index} single: NetworkX
376
364
```
377
365
378
366
One well-known example is [NetworkX](http://networkx.github.io/).
@@ -414,70 +402,59 @@ plt.show()
414
402
415
403
### Cloud Computing
416
404
417
-
```{index}
418
-
single: cloud computing
405
+
```{index} single: cloud computing
419
406
```
420
407
421
408
Running your Python code on massive servers in the cloud is becoming easier and easier.
```{index} single: cloud computing; google app engine
439
423
```
440
424
441
425
* The [Google App Engine](https://cloud.google.com/appengine/) (Python, Java, PHP or Go)
Apart from the cloud computing options listed above, you might like to consider
462
443
463
-
```{index}
464
-
single: parallel computing; ipython
444
+
```{index} single: parallel computing; ipython
465
445
```
466
446
467
447
*[Parallel computing through IPython clusters](http://ipython.org/ipython-doc/stable/parallel/parallel_demos.html).
* The [Starcluster](http://star.mit.edu/cluster/) interface to Amazon's EC2.
474
453
475
-
```{index}
476
-
single: parallel computing; copperhead
454
+
```{index} single: parallel computing; copperhead
477
455
```
478
456
479
-
```{index}
480
-
single: parallel computing; pycuda
457
+
```{index} single: parallel computing; pycuda
481
458
```
482
459
483
460
* GPU programming through [PyCuda](https://wiki.tiker.net/PyCuda), [PyOpenCL](https://mathema.tician.de/software/pyopencl/), [Theano](http://deeplearning.net/software/theano/) or similar.
@@ -489,32 +466,27 @@ There are many other interesting developments with scientific programming in Pyt
*[Jupyter](http://jupyter.org/) --- Python in your browser with interactive code cells, embedded images and other useful features.
497
473
498
-
```{index}
499
-
single: scientific programming; Numba
474
+
```{index} single: scientific programming; Numba
500
475
```
501
476
502
477
*[Numba](http://numba.pydata.org/) --- Make Python run at the same speed as native machine code!
503
478
504
-
```{index}
505
-
single: scientific programming; Blaze
479
+
```{index} single: scientific programming; Blaze
506
480
```
507
481
508
482
*[Blaze](http://blaze.pydata.org/) --- a generalization of NumPy.
*[PyTables](http://www.pytables.org) --- manage large data sets.
515
488
516
-
```{index}
517
-
single: scientific programming; CVXPY
489
+
```{index} single: scientific programming; CVXPY
518
490
```
519
491
520
492
*[CVXPY](https://github.com/cvxgrp/cvxpy) --- convex optimization in Python.
* Read more about [Python's history and rise in popularity](https://www.welcometothejungle.com/en/articles/btc-python-popular) .
526
498
* Have a look at [some of the Jupyter notebooks](http://nbviewer.jupyter.org/) people have shared on various scientific topics.
527
499
528
-
```{index}
529
-
single: Python; PyPI
500
+
```{index} single: Python; PyPI
530
501
```
531
502
532
503
* Visit the [Python Package Index](https://pypi.org/).
Copy file name to clipboardExpand all lines: source/rst/getting_started.md
+13-26Lines changed: 13 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,8 +20,7 @@ kernelspec:
20
20
21
21
# Setting up Your Python Environment
22
22
23
-
```{index}
24
-
single: Python
23
+
```{index} single: Python
25
24
```
26
25
27
26
```{contents} Contents
@@ -67,8 +66,7 @@ Anaconda also comes with a great package management system to organize your code
67
66
(install_anaconda)=
68
67
### Installing Anaconda
69
68
70
-
```{index}
71
-
single: Python; Anaconda
69
+
```{index} single: Python; Anaconda
72
70
```
73
71
74
72
To install Anaconda, [download](https://www.anaconda.com/download/) the binary and follow the instructions.
@@ -94,16 +92,13 @@ For more information on conda, type conda help in a terminal.
94
92
(ipython_notebook)=
95
93
## Jupyter Notebooks
96
94
97
-
```{index}
98
-
single: Python; IPython
95
+
```{index} single: Python; IPython
99
96
```
100
97
101
-
```{index}
102
-
single: IPython
98
+
```{index} single: IPython
103
99
```
104
100
105
-
```{index}
106
-
single: Jupyter
101
+
```{index} single: Jupyter
107
102
```
108
103
109
104
[Jupyter](http://jupyter.org/) notebooks are one of the many possible ways to interact with Python and the scientific libraries.
@@ -132,8 +127,7 @@ These lectures are designed for executing in Jupyter notebooks.
132
127
133
128
### Starting the Jupyter Notebook
134
129
135
-
```{index}
136
-
single: Jupyter Notebook; Setup
130
+
```{index} single: Jupyter Notebook; Setup
137
131
```
138
132
139
133
Once you have installed Anaconda, you can start the Jupyter notebook.
@@ -179,8 +173,7 @@ The notebook displays an *active cell*, into which you can type Python commands.
179
173
180
174
### Notebook Basics
181
175
182
-
```{index}
183
-
single: Jupyter Notebook; Basics
176
+
```{index} single: Jupyter Notebook; Basics
184
177
```
185
178
186
179
Let's start with how to edit code and run simple programs.
@@ -294,8 +287,7 @@ In this way, the Tab key helps remind you of what's available and also saves you
294
287
(gs_help)=
295
288
#### On-Line Help
296
289
297
-
```{index}
298
-
single: Jupyter Notebook; Help
290
+
```{index} single: Jupyter Notebook; Help
299
291
```
300
292
301
293
To get help on `np.rank`, say, we can execute `np.rank?`.
@@ -331,12 +323,10 @@ Now we `Shift+Enter` to produce this
331
323
332
324
### Sharing Notebooks
333
325
334
-
```{index}
335
-
single: Jupyter Notebook; Sharing
326
+
```{index} single: Jupyter Notebook; Sharing
336
327
```
337
328
338
-
```{index}
339
-
single: Jupyter Notebook; nbviewer
329
+
```{index} single: Jupyter Notebook; nbviewer
340
330
```
341
331
342
332
Notebook files are just text files structured in [JSON](https://en.wikipedia.org/wiki/JSON) and typically ending with `.ipynb`.
@@ -360,8 +350,7 @@ to comments and votes by the community.
360
350
## Installing Libraries
361
351
362
352
(gs_qe)=
363
-
```{index}
364
-
single: QuantEcon
353
+
```{index} single: QuantEcon
365
354
```
366
355
367
356
Most of the libraries we need come in Anaconda.
@@ -435,8 +424,7 @@ following questions:
435
424
436
425
#### Option 1: JupyterLab
437
426
438
-
```{index}
439
-
single: JupyterLab
427
+
```{index} single: JupyterLab
440
428
```
441
429
442
430
[JupyterLab](https://github.com/jupyterlab/jupyterlab) is an integrated development environment built on top of Jupyter notebooks.
@@ -494,8 +482,7 @@ This is an alternative way to start the notebook that can also be handy.
494
482
(gs_ex2)=
495
483
### Exercise 2
496
484
497
-
```{index}
498
-
single: Git
485
+
```{index} single: Git
499
486
```
500
487
501
488
This exercise will familiarize you with git and GitHub.
0 commit comments