D. Gamba, A. Latina, A. Poyet, G. Sterbini, V. Ziemann
During the CAS 2022 in Kaunas (Lithuania), we will be using Python or MATLAB as scripting languages for the Hands-On Lattice Calculation course.
This repository contains all material used during the python version of the course. The repository is based on the material prepared and updated during previous courses by G. Sterbini, A. Latina, A. Poyet, CERN and V. Ziemann, Uppsala University.
- Setup_Instructions.md contains all information to get ready for the course. We kindly ask the student to read this document before coming to CAS to prepare yourself (and your laptop) for the course.
- CAS_Optics_Primer.pdf is the primer of the course. You are invited to consult it before, during, and after the course.
- Exercises.ipynb will be the "canvas" used during the course. It contains all exercise with "incomplete" parts that the student will have to fill.
- Exercises_Solutions.ipynb contains the solutions to all the exercises that we will tackle during the course. This notebook is provided for the student convenience, but it is clearly not expected to be used before and/or during the course itself.
NOTE: the material in this repository is expected to evolve over time thanks to the feedback received from you! Please don't hesitate to transmit us your comments, suggestions, and complains!
The material is hosted on github under the cerncas organisation and mirrored (for backup purposes) to the CERN GitLab CAS group. One is expected to edit the material:
- from github directly using the github editor
- from one's computer cloning the repository, editing/adding/deleting the desired content, finally pushing the content to github
See article KB0003132 to learn about CERN policy. To setup a "Pull mirroring" on the CERN GitLab to retrieve a copy of GitHub repository, see the official documentation.
The typically suggested way is to use pandoc package:
pandoc Setup_Instructions.md -o Setup_Instructions.pdfunfortunately, this doesn't work when you have HTML inside your .md file, as we presently have...
A solution could be to use the Print extension for VisualStudio...
The students are expected to download Exercises.ipynb on their computer, and open it using Jupyter Lab. The presenter can also use Jupyter Lab and do the exercise with the students. To launch Jupyter Lab, move in a terminal to this folder and execute:
jupyter labOne can also present Exercises_Solutions.ipynb in presentation mode:
jupyter nbconvert Exercises_Solutions.ipynb --to slides --post serveAlternatively, one can:
- create a html of the slides:
jupyter nbconvert Exercises_Solutions.ipynb --to slides
- create a pdf of the slides:
conda install pandoc jupyter nbconvert Exercises_Solutions.ipynb --to pdf