Repository contains the code for exercise sessions of Modern Techniques in Hadron Spectroscopy school.
cd ~/Documents # or any other directory you want to clone the repository
git clone https://github.com/JointPhysicsAnalysisCenter/MTHS-code MTHS-code
cd MTHS-code
- Setup
conda
environment
Make sure you have conda
installed. The easiest way for homebrew users is:
brew install --cask anaconda
For Linux, follow the instructions here.
Create a new conda environment and install the required packages:
conda create --name lattice-qcd python
conda activate lattice-qcd
conda install numpy scipy matplotlib iminuit jupyterlab
- Start Jupyter Lab and Open the Notebook
Launch Jupyter Lab from the terminal:
jupyter lab
In your web browser, navigate to the Jupyter Lab interface. Open the notebook file inside the folder you just downloaded.
Open the .ipynb
and Follow the Instructions in the NotebookNote that the first two cells just load packages and fixed variables, as described in the notebook.
For basic commands and shortcuts in Jupyter Notebook, refer to the Jupyter Notebook Cheat Sheet.
-
Download and install Julia from the official website.
-
Open Julia and install
Pluto.jl
:
] add Pluto
- Start Pluto and Open the Notebook
Launch Pluto from the Julia REPL:
using Pluto
Pluto.run()
In your web browser, navigate to the Pluto interface. Open the notebook files.
- For Julia notes, visit JuliaNotes.jl.
- For
Pluto.jl
tips, check out the Pluto.jl GitHub repository.
For more detailed information and additional resources, refer to the code repository.