This is a sandpit for the Python Lectures
Getting this repository setup:
- Download and install Anacoda python distribution
- Fetch this repository from
git
git clone https://github.com/QuantEcon/python-lecture-sandpit.myst cd python-lecture-sandpit.myst
- Install the pre-configured
conda
environmentconda env create -f environment.yml conda activate quantecon
If you would prefer to use a different environment but want to add the tools
this can be done
via pip
:
For building jupyter-book
:
- Jupyter Book:
pip install jupyter-book
- QuantEcon Theme:
pip install git+https://github.com/quantecon/quantecon-book-theme
For conversion and publishing:
- Jupytext:
pip install jupytext
- Github Pages Import Tool:
pip install ghp-import
To build the sandpit using jupyter-book
:
- To build the
lectures
collection you can useorjb build lectures
This will by default save the outputs injupyter-book build lectures
<lecture>/_build/html
within the project folder - If you are already in the
lectures
folder you can use:orjb build ./
This will by default save the outputs injupyter-book build ./
_build/html
within the project folder
There is currently no way to auto-launch the results after a build is complete.
To open the html
you can use:
#OS X
open lectures/_build/html/index.html
#Linux (you could also use firefox etc.)
chrome lectures/_build/html/index.html
or browse to the folder via the finder.
A QuantEcon suggested workflow is also available for writing content via Notebooks.