Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: quantecon
name: lecture-python-programming
channels:
- default
dependencies:
Expand All @@ -7,17 +7,14 @@ dependencies:
- pip
- pip:
- jupyter-book==0.15.1
- quantecon-book-theme==0.4.1
- quantecon-book-theme==0.5.0
- sphinx-tojupyter==0.3.0
- sphinxext-rediraffe==0.2.7
- sphinx-exercise==0.4.1
- ghp-import==1.1.0
- sphinxcontrib-youtube==1.1.0
- sphinx-togglebutton==0.3.1
- ghp-import==2.1.0
- sphinxcontrib-youtube==1.2.0
- sphinx-togglebutton==0.3.2
- arviz==0.13.0
- kaleido
# Docker Requirements
- pytz
# Additional Requirements
- array-to-latex
- prettytable


5 changes: 3 additions & 2 deletions lectures/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ latex:
targetname: quantecon-python-programming.tex

sphinx:
extra_extensions: [sphinx_multitoc_numbering, sphinxext.rediraffe, sphinx_tojupyter, sphinx_exercise, sphinx_togglebutton]
extra_extensions: [sphinx_multitoc_numbering, sphinxext.rediraffe, sphinx_exercise, sphinx_togglebutton] # sphinx_tojupyter,
config:
html_favicon: _static/lectures-favicon.ico
html_theme: quantecon_book_theme
Expand All @@ -37,7 +37,8 @@ sphinx:
binderhub_url : https://mybinder.org # The URL of the BinderHub (e.g., https://mybinder.org)
colab_url : https://colab.research.google.com
thebe : false # Add a thebe button to pages (requires the repository to run on Binder)
mathjax_path: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
sticky_contents: true
mathjax_path: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-svg.js
rediraffe_redirects:
index_toc.md: intro.md
tojupyter_static_file_path: ["source/_static", "_static"]
Expand Down
1 change: 1 addition & 0 deletions lectures/math2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pi = 'foobar'
1 change: 1 addition & 0 deletions lectures/mod.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print(__name__)
2 changes: 2 additions & 0 deletions lectures/newfile.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Testing
Testing again
6 changes: 6 additions & 0 deletions lectures/numbers.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
prices
3
8

7
21
8 changes: 8 additions & 0 deletions lectures/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
def g(x):
a = 1
x = x + a
return x

a = 0
y = g(10)
print("a = ", a, "y = ", y)
11 changes: 11 additions & 0 deletions lectures/test_table.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Date,Open,High,Low,Close,Volume,Adj Close
2009-05-21,9280.35,9286.35,9189.92,9264.15,133200,9264.15
2009-05-20,9372.72,9399.40,9311.61,9344.64,143200,9344.64
2009-05-19,9172.56,9326.75,9166.97,9290.29,167000,9290.29
2009-05-18,9167.05,9167.82,8997.74,9038.69,147800,9038.69
2009-05-15,9150.21,9272.08,9140.90,9265.02,172000,9265.02
2009-05-14,9212.30,9223.77,9052.41,9093.73,169400,9093.73
2009-05-13,9305.79,9379.47,9278.89,9340.49,176000,9340.49
2009-05-12,9358.25,9389.61,9298.61,9298.61,188400,9298.61
2009-05-11,9460.72,9503.91,9342.75,9451.98,230800,9451.98
2009-05-08,9351.40,9464.43,9349.57,9432.83,220200,9432.83
9 changes: 9 additions & 0 deletions lectures/us_cities.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
new york: 8244910
los angeles: 3819702
chicago: 2707120
houston: 2145146
philadelphia: 1536471
phoenix: 1469471
san antonio: 1359758
san diego: 1326179
dallas: 1223229