This is a sandpit for the Python Lectures
Getting this repository setup:
git
git clone https://github.com/QuantEcon/python-lecture-sandpit.myst
cd python-lecture-sandpit.myst
conda
environment
conda 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
:
pip install jupyter-book
pip install git+https://github.com/quantecon/quantecon-book-theme
For conversion and publishing:
pip install jupytext
pip install ghp-import
To build the sandpit using jupyter-book
:
lectures
collection you can use
jb build lectures
or
jupyter-book build lectures
This will by default save the outputs in <lecture>/_build/html
within the project folder
lectures
folder you can use:
jb build ./
or
jupyter-book build ./
This will by default save the outputs in _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.