Notes and tutorials for using Cadabra2.
Kasper maintains an official Docker image in the source tree. You can download it directly from Dockerhub here, or using the command line:
docker image pull kpeeters/cadabra2-jupyter
I will no longer be maintaining the Dockerfile in this repository.
Note, this is by no means a small Dockerfile for Cadabra -- but personally I do not enjoy using conda
on my work machine, so prefer the modularity of Docker for porting the environment around.
With all of the Cadabra, conda, and Jupyter dependencies, this image comes to a whopping 2.9 GB. As such, I will not be uploading it to Docker Hub, and instead hosting the Dockerfile here.
Update: For the new python jupyter kernel, I created another Dockerfile, this one builds the branch from source and then copies the relevant binaries to a seperate container. The build time is longer, however the resultant final image is 515 MB, which is a lot more acceptable.
This container I may make available on Docker Hub in the future for use, since the build time is a little silly.
docker build . -t cadabra2-jupyter
docker run -p 8080:8080 -v $(pwd)/notebooks:/home/cadabra cadabra2-jupyter
and follow the tokenized url in your browser to access.
Most of the notebooks will be derived from a brilliant tutorial by Leo Brewin, which you can find on ArXiv.
I include some of my original work without indication, however such amendments serve primarily to aid my own learning.