Skip to content

Commit 1869ac4

Browse files
committed
remove doc derivates
1 parent 24c897c commit 1869ac4

11 files changed

+23
-23
lines changed

lectures/functions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ The full list of Python built-ins is [here](https://docs.python.org/library/func
7373
If the built-in functions don't cover what we need, we either need to import
7474
functions or create our own.
7575

76-
Examples of importing and using functions were given in the {doc}`previous lecture <python_by_example>`
76+
Examples of importing and using functions were given in the [previous lecture](python_by_example.md)
7777

7878
Here's another one, which tests whether a given year is a leap year:
7979

@@ -263,13 +263,13 @@ User-defined functions are important for improving the clarity of your code by
263263

264264
(Writing the same thing twice is [almost always a bad idea](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself))
265265

266-
We will say more about this {doc}`later <writing_good_code>`.
266+
We will say more about this [later](writing_good_code.md).
267267

268268
## Applications
269269

270270
### Random Draws
271271

272-
Consider again this code from the {doc}`previous lecture <python_by_example>`
272+
Consider again this code from the [previous lecture](python_by_example.md)
273273

274274
```{code-cell} python3
275275
ts_length = 100

lectures/need_for_speed.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,5 +313,5 @@ vectorization listed above.
313313
It does so through something called **just in time (JIT) compilation**,
314314
which can generate extremely fast and efficient code.
315315

316-
{doc}`Later <numba>` we'll learn how to use Numba to accelerate Python code.
316+
[Later](numba.md) we'll learn how to use Numba to accelerate Python code.
317317

lectures/numba.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
2222
```
2323

2424
Please also make sure that you have the latest version of Anaconda, since old
25-
versions are a {doc}`common source of errors <troubleshooting>`.
25+
versions are a [common source of errors](troubleshooting.md).
2626

2727
Let's start with some imports:
2828

@@ -34,7 +34,7 @@ import matplotlib.pyplot as plt
3434

3535
## Overview
3636

37-
In an {doc}`earlier lecture <need_for_speed>` we learned about vectorization, which is one method to improve speed and efficiency in numerical work.
37+
In an [earlier lecture](need_for_speed.md) we learned about vectorization, which is one method to improve speed and efficiency in numerical work.
3838

3939
Vectorization involves sending array processing
4040
operations in batch to efficient low-level code.
@@ -161,7 +161,7 @@ Numba attempts to generate fast machine code using the infrastructure provided b
161161

162162
It does this by inferring type information on the fly.
163163

164-
(See our {doc}`earlier lecture <need_for_speed>` on scientific computing for a discussion of types.)
164+
(See our [earlier lecture](need_for_speed.md) on scientific computing for a discussion of types.)
165165

166166
The basic idea is this:
167167

@@ -193,7 +193,7 @@ qm_numba = jit(qm)
193193

194194
In practice this would typically be done using an alternative *decorator* syntax.
195195

196-
(We discuss decorators in a {doc}`separate lecture <python_advanced_features>` but you can skip the details at this stage.)
196+
(We discuss decorators in a [separate lecture](python_advanced_features.md) but you can skip the details at this stage.)
197197

198198
Let's see how this is done.
199199

@@ -295,7 +295,7 @@ If a class is successfully compiled, then its methods act as JIT-compiled
295295
functions.
296296

297297
To give one example, let's consider the class for analyzing the Solow growth model we
298-
created in {doc}`this lecture <python_oop>`.
298+
created in [this lecture](python_oop.md).
299299

300300
To compile this class we use the `@jitclass` decorator:
301301

@@ -410,7 +410,7 @@ If you prefer, you can safely skip this section.
410410

411411
### Cython
412412

413-
Like {doc}`Numba <numba>`, [Cython](http://cython.org/) provides an approach to generating fast compiled code that can be used from Python.
413+
Like [Numba](numba.md), [Cython](http://cython.org/) provides an approach to generating fast compiled code that can be used from Python.
414414

415415
As was the case with Numba, a key problem is the fact that Python is dynamically typed.
416416

lectures/numpy.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ a
956956
What's happened is that we have changed `a` by changing `b`.
957957

958958
The name `b` is bound to `a` and becomes just another reference to the
959-
array (the Python assignment model is described in more detail {doc}`later in the course <python_advanced_features>`).
959+
array the Python assignment model is described in more detail [later in the course](python_advanced_features.md).
960960

961961
Hence, it has equal rights to make changes to that array.
962962

@@ -1149,7 +1149,7 @@ np.linalg.inv(A) # Compute the inverse
11491149

11501150
Much of this functionality is also available in [SciPy](http://www.scipy.org/), a collection of modules that are built on top of NumPy.
11511151

1152-
We'll cover the SciPy versions in more detail {doc}`soon <scipy>`.
1152+
We'll cover the SciPy versions in more detail [soon](scipy.md).
11531153

11541154
For a comprehensive list of what's available in NumPy see [this documentation](https://docs.scipy.org/doc/numpy/reference/routines.html).
11551155

@@ -1159,7 +1159,7 @@ For a comprehensive list of what's available in NumPy see [this documentation](h
11591159
```{index} single: Vectorization; Operations on Arrays
11601160
```
11611161

1162-
We mentioned in an {doc}`previous lecture <need_for_speed>` that NumPy-based vectorization can
1162+
We mentioned in an [previous lecture](need_for_speed.md) that NumPy-based vectorization can
11631163
accelerate scientific applications.
11641164

11651165
In this section we try some speed comparisons to illustrate this fact.

lectures/oop_intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ If Python is object oriented, why don't we use `x.len()`?
287287
The answer is related to the fact that Python aims for readability and consistent style.
288288

289289
In Python, it is common for users to build custom objects --- we discuss how to
290-
do this {doc}`later <python_oop>`.
290+
do this [later](python_oop.md).
291291

292292
It's quite common for users to add methods to their that measure the length of
293293
the object, suitably defined.

lectures/pandas_panel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ sns.set_theme()
3434

3535
## Overview
3636

37-
In an {doc}`earlier lecture on pandas <pandas>`, we looked at working with simple data sets.
37+
In an [earlier lecture on pandas](pandas.md), we looked at working with simple data sets.
3838

3939
Econometricians often need to work with more complex data sets, such as panels.
4040

lectures/parallelization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ on the number of CPUs on your machine.)
477477
```{exercise}
478478
:label: parallel_ex2
479479
480-
In {doc}`our lecture on SciPy<scipy>`, we discussed pricing a call option in a
480+
In [our lecture on SciPy](scipy.md), we discussed pricing a call option in a
481481
setting where the underlying stock price had a simple and well-known
482482
distribution.
483483

lectures/python_by_example.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The objective is to introduce you to basic Python syntax and data structures.
2525

2626
Deeper concepts will be covered in later lectures.
2727

28-
You should have read the {doc}`lecture <getting_started>` on getting started with Python before beginning this one.
28+
You should have read the [lecture](getting_started.md) on getting started with Python before beginning this one.
2929

3030

3131
## The Task: Plotting a White Noise Process
@@ -67,7 +67,7 @@ Let's break this program down and see how it works.
6767
The first two lines of the program import functionality from external code
6868
libraries.
6969

70-
The first line imports {doc}`NumPy <numpy>`, a favorite Python package for tasks like
70+
The first line imports [NumPy](numpy.md), a favorite Python package for tasks like
7171

7272
* working with arrays (vectors and matrices)
7373
* common mathematical functions like `cos` and `sqrt`
@@ -250,7 +250,7 @@ x
250250

251251
Here `append()` is what's called a **method**, which is a function "attached to" an object---in this case, the list `x`.
252252

253-
We'll learn all about methods {doc}`later on <oop_intro>`, but just to give you some idea,
253+
We'll learn all about methods [later on](oop_intro.md), but just to give you some idea,
254254

255255
* Python objects such as lists, strings, etc. all have methods that are used to manipulate data contained in the object.
256256
* String objects have [string methods](https://docs.python.org/3/library/stdtypes.html#string-methods), list objects have [list methods](https://docs.python.org/3/tutorial/datastructures.html#more-on-lists), etc.

lectures/python_oop.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ kernelspec:
1616

1717
## Overview
1818

19-
In an {doc}`earlier lecture <oop_intro>`, we learned some foundations of object-oriented programming.
19+
In an [earlier lecture](oop_intro.md), we learned some foundations of object-oriented programming.
2020

2121
The objectives of this lecture are
2222

@@ -68,7 +68,7 @@ Let's cover general OOP concepts before we specialize to Python.
6868
```{index} single: Object-Oriented Programming; Key Concepts
6969
```
7070

71-
As discussed an {doc}`earlier lecture <oop_intro>`, in the OOP paradigm, data and functions are **bundled together** into "objects".
71+
As discussed an [earlier lecture](oop_intro.md), in the OOP paradigm, data and functions are **bundled together** into "objects".
7272

7373
An example is a Python list, which not only stores data but also knows how to sort itself, etc.
7474

lectures/troubleshooting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The basic assumption of the lectures is that code in a lecture should execute wh
2121
1. it is executed in a Jupyter notebook and
2222
1. the notebook is running on a machine with the latest version of Anaconda Python.
2323

24-
You have installed Anaconda, haven't you, following the instructions in {doc}`this lecture <getting_started>`?
24+
You have installed Anaconda, haven't you, following the instructions in [this lecture](getting_started.md)?
2525

2626
Assuming that you have, the most common source of problems for our readers is that their Anaconda distribution is not up to date.
2727

0 commit comments

Comments
 (0)