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: lectures/about_py.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,7 @@ series, as well as in our later series on [JAX](https://jax.quantecon.org/intro.
89
89
90
90
[Python](https://www.python.org) is a general-purpose programming language conceived in 1989 by [Guido van Rossum](https://en.wikipedia.org/wiki/Guido_van_Rossum).
91
91
92
-
Python is free and [open source](https://en.wikipedia.org/wiki/Open_source), with development coordinated through the [Python Software Foundation](https://www.python.org/psf/).
92
+
Python is free and [open source](https://en.wikipedia.org/wiki/Open_source), with development coordinated through the [Python Software Foundation](https://www.python.org/psf-landing/).
93
93
94
94
This is important because it
95
95
@@ -349,7 +349,7 @@ We will discuss the details later in the lecture series, where we cover NumPy in
349
349
While NumPy is still the king of array processing in Python, there are now
350
350
important competitors.
351
351
352
-
Libraries such as [JAX](https://github.com/google/jax), [Pytorch](https://pytorch.org/), and [CuPy](https://cupy.dev/) also have
352
+
Libraries such as [JAX](https://github.com/jax-ml/jax), [Pytorch](https://pytorch.org/), and [CuPy](https://cupy.dev/) also have
353
353
built in array types and array operations that can be very fast and efficient.
354
354
355
355
In fact these libraries are better at exploiting parallelization and fast hardware, as
@@ -430,9 +430,9 @@ Other graphics libraries include
430
430
*[Plotly](https://plotly.com/python/)
431
431
*[seaborn](https://seaborn.pydata.org/) --- a high-level interface for matplotlib
432
432
*[Altair](https://altair-viz.github.io/)
433
-
*[Bokeh](https://bokeh.pydata.org/en/latest/)
433
+
*[Bokeh](https://docs.bokeh.org/en/latest/)
434
434
435
-
You can visit the [Python Graph Gallery](https://www.python-graph-gallery.com/) for more example plots drawn using a variety of libraries.
435
+
You can visit the [Python Graph Gallery](https://python-graph-gallery.com/) for more example plots drawn using a variety of libraries.
To keep the code private and to use the familiar JupyterLab and Notebook interface, look into the [JupyterLab Real-Time Collaboration extension](https://jupyterlab-realtime-collaboration.readthedocs.io/en/latest/).
430
430
```
@@ -447,10 +447,10 @@ Most of the libraries we need come in Anaconda.
447
447
448
448
Other libraries can be installed with `pip` or `conda`.
449
449
450
-
One library we'll be using is [QuantEcon.py](http://quantecon.org/quantecon-py).
450
+
One library we'll be using is [QuantEcon.py](https://quantecon.org/quantecon-py/).
451
451
452
452
(gs_install_qe)=
453
-
You can install [QuantEcon.py](http://quantecon.org/quantecon-py) by
453
+
You can install [QuantEcon.py](https://quantecon.org/quantecon-py/) by
454
454
starting Jupyter and typing
455
455
456
456
```{code-block} ipython3
@@ -469,7 +469,7 @@ Alternatively, you can type the following into a terminal
469
469
conda install quantecon
470
470
```
471
471
472
-
More instructions can be found on the [library page](http://quantecon.org/quantecon-py).
472
+
More instructions can be found on the [library page](https://quantecon.org/quantecon-py/).
473
473
474
474
To upgrade to the latest version, which you should do regularly, use
Copy file name to clipboardExpand all lines: lectures/numba.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -166,7 +166,7 @@ This kind of speed gain is impressive relative to how simple and clear the modif
166
166
167
167
### How and When it Works
168
168
169
-
Numba attempts to generate fast machine code using the infrastructure provided by the [LLVM Project](http://llvm.org/).
169
+
Numba attempts to generate fast machine code using the infrastructure provided by the [LLVM Project](https://llvm.org/).
170
170
171
171
It does this by inferring type information on the fly.
172
172
@@ -419,7 +419,7 @@ If you prefer, you can safely skip this section.
419
419
420
420
### Cython
421
421
422
-
Like {doc}`Numba <numba>`, [Cython](http://cython.org/) provides an approach to generating fast compiled code that can be used from Python.
422
+
Like {doc}`Numba <numba>`, [Cython](https://cython.org/) provides an approach to generating fast compiled code that can be used from Python.
423
423
424
424
As was the case with Numba, a key problem is the fact that Python is dynamically typed.
425
425
@@ -442,15 +442,15 @@ cumbersome than Numba.
442
442
```
443
443
444
444
If you are comfortable writing Fortran you will find it very easy to create
445
-
extension modules from Fortran code using [F2Py](https://docs.scipy.org/doc/numpy/f2py/).
445
+
extension modules from Fortran code using [F2Py](https://numpy.org/doc/stable/f2py/).
446
446
447
447
F2Py is a Fortran-to-Python interface generator that is particularly simple to
448
448
use.
449
449
450
-
Robert Johansson provides a [nice introduction](http://nbviewer.jupyter.org/github/jrjohansson/scientific-python-lectures/blob/master/Lecture-6A-Fortran-and-C.ipynb)
450
+
Robert Johansson provides a [nice introduction](https://nbviewer.org/github/jrjohansson/scientific-python-lectures/blob/master/Lecture-6A-Fortran-and-C.ipynb)
451
451
to F2Py, among other things.
452
452
453
-
Recently, [a Jupyter cell magic for Fortran](http://nbviewer.jupyter.org/github/mgaitan/fortran_magic/blob/master/documentation.ipynb) has been developed --- you might want to give it a try.
453
+
Recently, [a Jupyter cell magic for Fortran](https://nbviewer.org/github/mgaitan/fortran_magic/blob/master/documentation.ipynb) has been developed --- you might want to give it a try.
454
454
455
455
## Summary and Comments
456
456
@@ -554,7 +554,7 @@ characters.
554
554
:label: speed_ex2
555
555
```
556
556
557
-
In the [Introduction to Quantitative Economics with Python](https://python-intro.quantecon.org) lecture series you can
557
+
In the [Introduction to Quantitative Economics with Python](https://intro.quantecon.org/intro.html) lecture series you can
558
558
learn all about finite-state Markov chains.
559
559
560
560
For now, let's just concentrate on simulating a very simple example of such a chain.
Real-world datasets can be [enormous](https://developers.google.com/machine-learning/data-prep/construct/collect/data-size-quality).
273
+
Real-world datasets can be [enormous](https://developers.google.com/machine-learning/crash-course/overfitting).
274
274
275
275
It is sometimes desirable to work with a subset of data to enhance computational efficiency and reduce redundancy.
276
276
@@ -516,7 +516,7 @@ We start with a relatively low-level method and then return to pandas.
516
516
```{index} single: Python; requests
517
517
```
518
518
519
-
One option is to use [requests](https://requests.readthedocs.io/en/master/), a standard Python library for requesting data over the Internet.
519
+
One option is to use [requests](https://requests.readthedocs.io/en/latest/), a standard Python library for requesting data over the Internet.
520
520
521
521
To begin, try the following code on your computer
522
522
@@ -534,7 +534,7 @@ If you do get an error, then there are two likely causes
534
534
In the second case, you can either
535
535
536
536
* switch to another machine
537
-
* solve your proxy problem by reading [the documentation](https://requests.readthedocs.io/en/master/)
537
+
* solve your proxy problem by reading [the documentation](https://requests.readthedocs.io/en/latest/)
538
538
539
539
Assuming that all is working, you can now proceed to use the `source` object returned by the call `requests.get('https://research.stlouisfed.org/fred2/series/UNRATE/downloaddata/UNRATE.csv')`
Copy file name to clipboardExpand all lines: lectures/workspace.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ In this lecture, you will learn to
44
44
```{note}
45
45
Going forward, it is assumed that you have an Anaconda environment up and running.
46
46
47
-
You may want to [create a new conda environment](https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-with-commands) if you haven't done so already.
47
+
You may want to [create a new conda environment](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-with-commands) if you haven't done so already.
48
48
```
49
49
50
50
## Working with Python files
@@ -320,14 +320,14 @@ However, this is outside the focus of these lectures.
320
320
321
321
This section will familiarize you with git and GitHub.
322
322
323
-
[Git](http://git-scm.com/) is a *version control system* --- a piece of software used to manage digital projects such as code libraries.
323
+
[Git](https://git-scm.com/) is a *version control system* --- a piece of software used to manage digital projects such as code libraries.
324
324
325
325
In many cases, the associated collections of files --- called *repositories* --- are stored on [GitHub](https://github.com/).
326
326
327
327
GitHub is a wonderland of collaborative coding projects.
328
328
329
329
For example, it hosts many of the scientific libraries we'll be using later
330
-
on, such as [this one](https://github.com/pydata/pandas).
330
+
on, such as [this one](https://github.com/pandas-dev/pandas).
331
331
332
332
Git is the underlying software used to manage these projects.
333
333
@@ -337,9 +337,9 @@ lectures.
337
337
338
338
There are two main flavors of Git
339
339
340
-
1. the plain vanilla [command line Git](http://git-scm.com/downloads) version
340
+
1. the plain vanilla [command line Git](https://git-scm.com/downloads) version
341
341
2. the various point-and-click GUI versions
342
-
* See, for example, the [GitHub version](https://desktop.github.com/) or Git GUI integrated into your IDE.
342
+
* See, for example, the [GitHub version](https://github.com/apps/desktop) or Git GUI integrated into your IDE.
343
343
344
344
In case you already haven't, try
345
345
@@ -361,11 +361,11 @@ As the 2nd task,
361
361
1. Look into 'forking' GitHub repositories (forking means making your own copy of a GitHub repository, stored on GitHub).
1. Clone your fork to some local directory, make edits, commit them, and push them back up to your forked GitHub repo.
364
-
1. If you made a valuable improvement, send us a [pull request](https://help.github.com/articles/about-pull-requests/)!
364
+
1. If you made a valuable improvement, send us a [pull request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests)!
365
365
366
366
For reading on these and other topics, try
367
367
368
-
*[The official Git documentation](http://git-scm.com/doc).
368
+
*[The official Git documentation](https://git-scm.com/doc).
369
369
* Reading through the docs on [GitHub](https://docs.github.com/en).
370
-
*[Pro Git Book](http://git-scm.com/book) by Scott Chacon and Ben Straub.
370
+
*[Pro Git Book](https://git-scm.com/book) by Scott Chacon and Ben Straub.
371
371
* One of the thousands of Git tutorials on the Net.
Copy file name to clipboardExpand all lines: lectures/writing_good_code.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -189,7 +189,7 @@ But as a programmer, your aim should be to **automate** repetition, **not** do i
189
189
190
190
More importantly, repeating the same logic in different places means that eventually one of them will likely be wrong.
191
191
192
-
If you want to know more, read the excellent summary found on [this page](https://code.tutsplus.com/tutorials/3-key-software-principles-you-must-understand--net-25161).
192
+
If you want to know more, read the excellent summary found on [this page](https://code.tutsplus.com/3-key-software-principles-you-must-understand--net-25161t).
0 commit comments