Skip to content

Commit 6adb661

Browse files
committed
add initial mystmd setup
1 parent 4fd9e51 commit 6adb661

File tree

10 files changed

+132
-0
lines changed

10 files changed

+132
-0
lines changed

lectures/_static/ccbysa.png

17.2 KB
Loading

lectures/foo.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
print("foobar")

lectures/footer.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
::::{figure} _static/ccbysa.png
2+
:alt: CC-BY-SA-4.0
3+
:height: 36
4+
:align: left
5+
[Creative Commons License](https://creativecommons.org/licenses/by-sa/4.0) – This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International.
6+
::::

lectures/myst.yml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
version: 1
2+
project:
3+
title: Python Programming for Economics and Finance
4+
authors:
5+
- name: Thomas J. Sargent
6+
affiliations:
7+
- Professor of Economics, New York University.
8+
- Senior Fellow, Hoover Institution, Stanford, CA.
9+
url: http://www.tomsargent.com
10+
- name: John Stachurski
11+
affiliations:
12+
- Professor, Research School of Economics, ANU.
13+
- Instructor for Ph.D. Advanced Macroeconomics, University of Minnesota.
14+
url: https://johnstachurski.net
15+
email: john.stachurski@gmail.com
16+
bibliography:
17+
- _static/quant-econ.bib
18+
github: https://github.com/QuantEcon/lecture-python-programming.myst
19+
toc:
20+
- file: intro.md
21+
- title: Introduction to Python
22+
children:
23+
- file: about_py.md
24+
- file: getting_started.md
25+
- file: python_by_example.md
26+
- file: functions.md
27+
- file: python_essentials.md
28+
- file: oop_intro.md
29+
- file: names.md
30+
- file: python_oop.md
31+
- file: workspace.md
32+
- title: The Scientific Libraries
33+
children:
34+
- file: need_for_speed.md
35+
- file: numpy.md
36+
- file: matplotlib.md
37+
- file: scipy.md
38+
- file: pandas.md
39+
- file: pandas_panel.md
40+
- file: sympy.md
41+
- title: High Performance Computing
42+
children:
43+
- file: numba.md
44+
- file: parallelization.md
45+
- file: jax_intro.md
46+
- title: Advanced Python Programming
47+
children:
48+
- file: writing_good_code.md
49+
- file: python_advanced_features.md
50+
- file: debugging.md
51+
- title: Other
52+
children:
53+
- file: troubleshooting.md
54+
- file: status.md
55+
references:
56+
intermediate: https://python.quantecon.org/
57+
pyprog: https://python-programming.quantecon.org/
58+
intro: https://intro.quantecon.org/
59+
dle: https://quantecon.github.io/lecture-dle/
60+
dps: https://quantecon.github.io/lecture-dps/
61+
eqm: https://quantecon.github.io/lecture-eqm/
62+
stats: https://quantecon.github.io/lecture-stats/
63+
tools: https://quantecon.github.io/lecture-tools-techniques/
64+
dynam: https://quantecon.github.io/lecture-dynamics/
65+
numbering:
66+
titles: true
67+
headings: true
68+
heading_1: false
69+
figure:
70+
template: Fig. %s
71+
settings:
72+
output_stderr: remove
73+
output_matplotlib_strings: remove
74+
error_rules:
75+
- rule: reference-syntax-valid
76+
severity: ignore
77+
exports:
78+
- id: book-pdf
79+
format: typst
80+
template: https://github.com/rowanc1/typst-book.git
81+
output: exports/quantecon-python-intro.pdf
82+
downloads:
83+
- id: book-pdf
84+
title: Book (PDF)
85+
site:
86+
parts:
87+
footer: footer.md
88+
template: https://github.com/curvenote-themes/quantecon/archive/refs/heads/main.zip

lectures/newfile.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Testing
2+
Testing again

lectures/numbers.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
prices
2+
3
3+
8
4+
5+
7
6+
21

lectures/output.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Line 0: Testing
2+
3+
Line 1: Testing again

lectures/output2.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Line 0: Testing
2+
3+
Line 1: Testing again
4+
5+
This is the end of the file

lectures/test_table.csv

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Date,Open,High,Low,Close,Volume,Adj Close
2+
2009-05-21,9280.35,9286.35,9189.92,9264.15,133200,9264.15
3+
2009-05-20,9372.72,9399.40,9311.61,9344.64,143200,9344.64
4+
2009-05-19,9172.56,9326.75,9166.97,9290.29,167000,9290.29
5+
2009-05-18,9167.05,9167.82,8997.74,9038.69,147800,9038.69
6+
2009-05-15,9150.21,9272.08,9140.90,9265.02,172000,9265.02
7+
2009-05-14,9212.30,9223.77,9052.41,9093.73,169400,9093.73
8+
2009-05-13,9305.79,9379.47,9278.89,9340.49,176000,9340.49
9+
2009-05-12,9358.25,9389.61,9298.61,9298.61,188400,9298.61
10+
2009-05-11,9460.72,9503.91,9342.75,9451.98,230800,9451.98
11+
2009-05-08,9351.40,9464.43,9349.57,9432.83,220200,9432.83

lectures/us_cities.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
new york: 8244910
2+
los angeles: 3819702
3+
chicago: 2707120
4+
houston: 2145146
5+
philadelphia: 1536471
6+
phoenix: 1469471
7+
san antonio: 1359758
8+
san diego: 1326179
9+
dallas: 1223229

0 commit comments

Comments
 (0)