diff --git a/environment.yml b/environment.yml index 7424c22b..66d75e9c 100644 --- a/environment.yml +++ b/environment.yml @@ -1,4 +1,4 @@ -name: quantecon +name: lecture-python-programming channels: - default dependencies: @@ -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 - - diff --git a/lectures/_config.yml b/lectures/_config.yml index a36b2ba6..9d59422a 100644 --- a/lectures/_config.yml +++ b/lectures/_config.yml @@ -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 @@ -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"] diff --git a/lectures/math2.py b/lectures/math2.py new file mode 100644 index 00000000..c41e3d7a --- /dev/null +++ b/lectures/math2.py @@ -0,0 +1 @@ +pi = 'foobar' diff --git a/lectures/mod.py b/lectures/mod.py new file mode 100644 index 00000000..1b0c806d --- /dev/null +++ b/lectures/mod.py @@ -0,0 +1 @@ +print(__name__) diff --git a/lectures/newfile.txt b/lectures/newfile.txt new file mode 100644 index 00000000..119fdd30 --- /dev/null +++ b/lectures/newfile.txt @@ -0,0 +1,2 @@ +Testing +Testing again \ No newline at end of file diff --git a/lectures/numbers.txt b/lectures/numbers.txt new file mode 100644 index 00000000..5a6193d8 --- /dev/null +++ b/lectures/numbers.txt @@ -0,0 +1,6 @@ +prices +3 +8 + +7 +21 diff --git a/lectures/test.py b/lectures/test.py new file mode 100644 index 00000000..71c4f375 --- /dev/null +++ b/lectures/test.py @@ -0,0 +1,8 @@ +def g(x): + a = 1 + x = x + a + return x + +a = 0 +y = g(10) +print("a = ", a, "y = ", y) diff --git a/lectures/test_table.csv b/lectures/test_table.csv new file mode 100644 index 00000000..03fcd0fb --- /dev/null +++ b/lectures/test_table.csv @@ -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 diff --git a/lectures/us_cities.txt b/lectures/us_cities.txt new file mode 100644 index 00000000..9be9260f --- /dev/null +++ b/lectures/us_cities.txt @@ -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