{"id":13687871,"url":"https://github.com/QuantEcon/lecture-source-py","last_synced_at":"2025-05-01T15:33:10.599Z","repository":{"id":68509006,"uuid":"145659771","full_name":"QuantEcon/lecture-source-py","owner":"QuantEcon","description":"Source files for \"Lectures in Quantitative Economics\" -- Python version","archived":true,"fork":false,"pushed_at":"2020-04-24T00:19:47.000Z","size":43292,"stargazers_count":192,"open_issues_count":2,"forks_count":77,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-10-30T04:30:02.731Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/QuantEcon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":"numfocus","custom":"https://numfocus.org/donate-to-quantecon"}},"created_at":"2018-08-22T05:20:10.000Z","updated_at":"2024-09-18T02:32:08.000Z","dependencies_parsed_at":"2023-09-25T07:01:20.891Z","dependency_job_id":null,"html_url":"https://github.com/QuantEcon/lecture-source-py","commit_stats":{"total_commits":1096,"total_committers":31,"mean_commits":"35.354838709677416","dds":0.7773722627737226,"last_synced_commit":"8d500241b86b26eb9181edd67f4b026a96650183"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuantEcon%2Flecture-source-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuantEcon%2Flecture-source-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuantEcon%2Flecture-source-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuantEcon%2Flecture-source-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QuantEcon","download_url":"https://codeload.github.com/QuantEcon/lecture-source-py/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223871483,"owners_count":17217564,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T15:01:02.337Z","updated_at":"2024-11-12T11:30:49.816Z","avatar_url":"https://github.com/QuantEcon.png","language":"Jupyter Notebook","funding_links":["https://github.com/sponsors/numfocus","https://numfocus.org/donate-to-quantecon"],"categories":["Jupyter Notebook"],"sub_categories":[],"readme":"\n# Lectures in Quantitative Economics: Source Files\n\nThis repository is being **Archived**. \n\nThe python lecture series has been moved into three different series\n\nNew repositories:\n\n1. [Python Programming](https://github.com/QuantEcon/lecture-python-programming)\n2. [Introductory Quantitative Economics with Python](https://github.com/QuantEcon/lecture-python-intro)\n3. [Advanced Economics with Python](https://github.com/QuantEcon/lecture-python-advanced)\n\n### Python version\n\nThis repository contains\n\n* the `rst` source files for each python lecture in [Quantitative Economics with Python](https://lectures.quantecon.org/py/), in directory `source/rst`\n\n* supporting Python code in `source/_static/code/`\n\n* supporting figures, PDFs and other static assets in `source/_static`.\n\n## Building notebooks\n\n[Jupinx](https://jupinx.quantecon.org) should be used to build this set of lectures. \n\n## Style Guide - Writing Conventions\n\n### Mathematical Notation\n\nMatrices always use square brackets. Use `\\begin{bmatrix} ... \\end{bmatrix}`\n\nSequences use curly brackets, such as `\\{ x_t \\}_{t=0}^{\\infty}`\n\nThe use of align environments can be done using the `\\begin{algined} ... \\end{aligned}` as it is not a full math environment and works within the equation wrapping of sphinx.\n\n\"Independent and identically distributed\" is abbreviated to \"IID\".\n\nThe headings should not use math-environment.\n\nLabels must be written in all small alphabetical letters. Any special character should be avoided in labels except \"dash\" i.e \"-\"\n\nAll the cite key must use the default google scholar bibtex conventions.\n\nMath lines contained in `.. math::` directives should never start with `+` or `-` as they get interpreted as markdown. This is a temporary issue with `nbconvert`\n\n### Emphasis and Definitions\n\nUse **bold** for definitions and _italic_ for emphasis. For example,\n\n* A **closed set** is a set whose complement is open.\n* All consumers have _identical_ endowments.\n\n### Titles and Headings\n* Capitalization of all words for all titles.\n  \u003e Example “How it Works: Data, Variables and Names”\n\n### Adding References\n#### Adding a Citation to a Lecture\n\nTo add a reference to the text of a QuantEcon lecture you need to use the `:cite:\u003cbibtex-label\u003e` directive.\n\nFor example\n\n```\n:cite:`StokeyLucas1989`, chapter 2\n```\n\nis rendered rendered in HTML and LaTex as:\n\n\u003e [SLP89], chapter 2\n\n#### Adding a new reference to QuantEcon\n\nTo add a new reference to the project, a bibtex entry needs to be added to `lecture-source-py/source/_static/quant-econ.bib`.\n\n### Sphinx and Restructured Text\n\n#### Editing\nThe syntax of the source files is reStructuredText.\n\n[Here is a nice primer](http://sphinx-doc.org/rest.html) on how to write reStructuredText files.\n\n[Here is the documentation](http://jinja.pocoo.org/docs/dev/) for the Jinja template syntax.\n\n### Helpful Links\n* [A nice Sphinx tutorial](http://sphinx-doc.org/tutorial.html)\n* [Another rst primer](http://docutils.sourceforge.net/docs/user/rst/quickstart.html)\n\n\n## Building Lectures on OS X\n\nYou will need to fetch the Liberation Mono fonts for this repository to build the LaTeX components. \n\n```bash\nbrew tap homebrew/cask-fonts\nbrew cask install font-liberation-sans\nbrew cask install font-computer-modern\n```\n\n## Converting notebooks to RST files\n\nSometimes it's convenient to write a lecture as a notebook and then convert to\nRST\n\nThis guide is provided by TJS and requires pandoc 2.6 or newer\n\n(Use `pandoc --version` to test)\n\n1.  This step is necessary only if you want to strip out dollar signs from maths\n\n    *  `python latex_space_strip.py  [myinputfile.ipynb] -o [myoutputfile.ipynb]`\n\n2.  To convert, use\n\n    *  `pandoc [myfilenamenew.pynb] -f ipynb+tex_math_dollars -t rst -s -o [newfilename.rst]`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FQuantEcon%2Flecture-source-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FQuantEcon%2Flecture-source-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FQuantEcon%2Flecture-source-py/lists"}