This is the source repository for the QuantEcon Julia-flavored lectures.
See LICENSE.md
for licensing and copyright information.
-
Install Docker.
-
Run
docker pull quantecon/jupinx
. -
In a terminal, cd to this repository, and run
docker run --name quantecon-docker -it -d -v "$(pwd)":/home/jovyan/work quantecon/jupinx
from inside the directory (Linux/macOS). It should spit out a container ID string then exit. Try${PWD}
on Windows, but your mileage may vary.โ ๏ธ In order to guarantee reproducibility, you should either be mounting a fresh clone of this repository, or sanitize things by runninggit clean -xdff
(remove uncommitted/untracked files) andgit reset --hard
(reset to the last git state.) Otherwise, local variance in the mounted files may impact your results. -
In the same terminal (i.e., not inside the container), run
docker exec quantecon-docker bash -c "cd work && make jupyter".
Change it tojupyter-tests
if you want it to output/execute the test blocks. -
Grab a coffee. The Julia side executes in serial, so it takes about an hour (modulo your processor speed.)
-
After it's done, in a terminal run
docker stop quantecon-docker
anddocker rm quantecon-docker
. This will garbage-collect the container, and free the namequantecon-docker
for your next run. If you're having trouble, rundocker rm -f quantecon-docker
to force removal.