π» Work environment setup#
β± | words
In additional to theory π the course will have a strong βοΈ practical component, with hands-on exercises and projects.
To follow the course effectively, you will need to set up your local development environment to interact with the course materials and to write&run code examples.
Hint
The information on this page refers to the local install which enables you to run course code on the local machine. An alternative to this is to rely on cloud based resources such as Google Colab which have the development environment already configured β but provides less control.
Prerequisites#
You have a fairly modern computer: desktop or laptop, Windows or Mac or Linux
You have administrative access to this computer (can install programs)
Python and Anaconda#
The Anaconda package is an easy way to install:
Python
Jupyter Notebook
Scientific programming libraries
Git and Git GUI#
Git is the command line version control software
GUI makes Git a lot more practical
Recommended options:
GitHub#
Social coding network website
Hosting code
Version control + integrations
Community of coders
Open source community projects
Free hosting for static web pages
Register on GitHub (if not yet)
Be mindful about using your personal data when registering!
Course materials will be distributed through GitHub repository
Example
Text editor#
Good text editor is invaluable for editing source files
Could be done in Jupyter or other default editors, but less convenient
Essential for bigger coding projects
Good options are:
Sublime Text (for pay)
PyCharm (complex IDE)
Practical Task
Clone the course repository
git clone <repo address copied form the webpage>Create a new file in the working directory
Write/edit the new file using the text editor
Stage and commit
Observe diffs
Attempt to upload to server/GitHub by pushing
Jupyter notebooks#
Excellent way to present and discuss code
this entire course is tough using notebooks
Good instrument to develop new ideas
especially together with coauthors
Saved to disk as JSON files with multiple sections
text
math and formulas in latex
code (different languages are possible)
output from the code
Jupyter notebooks have limitations
NOT GOOD way to store developed code, use libraries (modules)
NOT GOOD for version control
changes in metadata are tracked
changes in output are tracked
merging changed files may break JSON format
Require additional tools to work well with Git
We donβt worry about it for the most of the course
References and Additional Resources
QuantEcon page on setting up local environment: link
Work space setup lecture from the Foundations of Computational Economics course YouTube video
Simple guide to Git link
Full reference to Git link
GitHub intro 30 min online course
Understanding Markdown 20 min online course