Skip to content

Commit 7a8ae2c

Browse files
committed
update sources from PR #51 sphinxcontrib-tomyst
1 parent 5310609 commit 7a8ae2c

File tree

9 files changed

+24
-24
lines changed

9 files changed

+24
-24
lines changed

source/rst/functions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ We will break this program into two parts:
192192

193193
1. A user-defined function that generates a list of random variables.
194194
1. The main part of the program that
195-
1. calls this function to get dat
196-
1. plots the dat
195+
1. calls this function to get data
196+
1. plots the data
197197

198198
This is accomplished in the next program
199199

source/rst/getting_started.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ single: Python
2020

2121
In this lecture, you will learn how to
2222

23-
1. get a Python environment up and runnin
23+
1. get a Python environment up and running
2424
1. execute simple Python commands
2525
1. run a sample program
2626
1. install the code libraries that underpin these lectures
@@ -43,7 +43,7 @@ The best such distribution is [Anaconda](https://www.anaconda.com/what-is-anacon
4343

4444
Anaconda is
4545

46-
* very popul
46+
* very popular
4747
* cross-platform
4848
* comprehensive
4949
* completely unrelated to the Nicki Minaj song of the same name
@@ -126,7 +126,7 @@ Once you have installed Anaconda, you can start the Jupyter notebook.
126126

127127
Either
128128

129-
* search for Jupyter in your applications menu, o
129+
* search for Jupyter in your applications menu, or
130130
* open up a terminal and type `jupyter notebook`
131131
* Windows users should substitute "Anaconda command prompt" for "terminal" in the previous line.
132132

@@ -139,7 +139,7 @@ If you use the second option, you will see something like this
139139
The output tells us the notebook is running at `http://localhost:8888/`
140140

141141
* `localhost` is the name of the local machine
142-
* `8888` refers to [port number](https://en.wikipedia.org/wiki/Port_%28computer_networking%29) 8888 on your compute
142+
* `8888` refers to [port number](https://en.wikipedia.org/wiki/Port_%28computer_networking%29) 8888 on your computer
143143

144144
Thus, the Jupyter kernel is listening for Python commands on port 8888 of our local machine.
145145

@@ -196,10 +196,10 @@ This means that the effect of typing at the keyboard **depends on which mode you
196196
The two modes are
197197

198198
1. Edit mode
199-
* Indicated by a green border around one cell, plus a blinking curso
199+
* Indicated by a green border around one cell, plus a blinking cursor
200200
* Whatever you type appears as is in that cell
201201
1. Command mode
202-
* The green border is replaced by a grey (or grey and blue) borde
202+
* The green border is replaced by a grey (or grey and blue) border
203203
* Keystrokes are interpreted as commands --- for example, typing b adds a new cell below the current one
204204

205205
To switch to

source/rst/need_for_speed.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ libraries are
7979
For us, there's another (relatively new) library that will also be essential for
8080
numerical computing:
8181

82-
* Numb
82+
* Numba
8383

8484
Over the next few lectures we'll see how to use these libraries.
8585

source/rst/numpy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ NumPy arrays are somewhat like native Python lists, except that
7474

7575
The most important of these dtypes are:
7676

77-
* float64: 64 bit floating-point numbe
78-
* int64: 64 bit intege
77+
* float64: 64 bit floating-point number
78+
* int64: 64 bit integer
7979
* bool: 8 bit True or False
8080

8181
There are also dtypes to represent complex numbers, unsigned integers, etc.

source/rst/oop_intro.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Consider the following expression
9797

9898
Here we are mixing types, and it's unclear to Python whether the user wants to
9999

100-
* convert `'300'` to an integer and then add it to `400`, o
100+
* convert `'300'` to an integer and then add it to `400`, or
101101
* convert `400` to string and then concatenate it with `'300'`
102102

103103
Some languages might try to guess but Python is *strongly typed*
@@ -239,7 +239,7 @@ This includes not just lists, strings, etc., but also less obvious things, such
239239

240240
* functions (once they have been read into memory)
241241
* modules (ditto)
242-
* files opened for reading or writin
242+
* files opened for reading or writing
243243
* integers, etc.
244244

245245
Consider, for example, functions.

source/rst/pandas.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Just as [NumPy](http://www.numpy.org/) provides the basic array data type plus c
3939

4040
1. defines fundamental structures for working with data and
4141
1. endows them with methods that facilitate operations such as
42-
* reading in dat
42+
* reading in data
4343
* adjusting indices
4444
* working with dates and time series
4545
* sorting, grouping, re-ordering and general data munging

source/rst/python_advanced_features.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ for line in f:
155155
The interpreter just keeps
156156

157157
1. calling `f.__next__()` and binding `line` to the result
158-
1. executing the body of the loo
158+
1. executing the body of the loop
159159

160160
This continues until a `StopIteration` error occurs.
161161

@@ -800,7 +800,7 @@ var([1])
800800
The advantage is that we can
801801

802802
* fail early, as soon as we know there will be a problem
803-
* supply specific information on why a program is failin
803+
* supply specific information on why a program is failing
804804

805805
### Handling Errors During Runtime
806806

source/rst/python_oop.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ In an earlier lecture, we learned some foundations of object-oriented programmin
2222

2323
The objectives of this lecture are
2424

25-
* cover OOP in more dept
25+
* cover OOP in more depth
2626
* learn how to build our own objects, specialized to our needs
2727

2828
For example, you already know how to
@@ -32,14 +32,14 @@ For example, you already know how to
3232

3333
So imagine now you want to write a program with consumers, who can
3434

35-
* hold and spend cas
35+
* hold and spend cash
3636
* consume goods
37-
* work and earn cas
37+
* work and earn cash
3838

3939
A natural solution in Python would be to create consumers as objects with
4040

4141
* data, such as cash on hand
42-
* methods, such as `buy` or `work` that affect this dat
42+
* methods, such as `buy` or `work` that affect this data
4343

4444
Python makes it easy to do this, by providing you with **class definitions**.
4545

@@ -91,7 +91,7 @@ A *class definition* is a blueprint for a particular class of objects (e.g., lis
9191
It describes
9292

9393
* What kind of data the class stores
94-
* What methods it has for acting on these dat
94+
* What methods it has for acting on these data
9595

9696
An *object* or *instance* is a realization of the class, created from the blueprint
9797

@@ -363,7 +363,7 @@ k_{t+1} = \frac{s z k_t^{\alpha} + (1 - \delta) k_t}{1 + n}
363363
Here
364364

365365
* $s$ is an exogenously given saving rate
366-
* $z$ is a productivity paramete
366+
* $z$ is a productivity parameter
367367
* $\alpha$ is capital's share of income
368368
* $n$ is the population growth rate
369369
* $\delta$ is the depreciation rate
@@ -564,7 +564,7 @@ plt.show()
564564

565565
The next program provides a function that
566566

567-
* takes an instance of `Market` as a paramete
567+
* takes an instance of `Market` as a parameter
568568
* computes dead weight loss from the imposition of the tax
569569

570570
```{code-block} python3

source/rst/troubleshooting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ You also need to keep the external code libraries, such as [QuantEcon.py](https:
3434

3535
For this task you can either
3636

37-
* use conda upgrade quantecon on the command line, o
37+
* use conda upgrade quantecon on the command line, or
3838
* execute !conda upgrade quantecon within a Jupyter notebook.
3939

4040
If your local environment is still not working you can do two things.

0 commit comments

Comments
 (0)