Software setup guide#

This course uses specialist scientific software for atomistic modelling: Atomistic Simulation Environment, GPAW and MACE. All of the software is Python-based and open source.

Specialist scientific software can be very powerful, but setup is not always as straight forward as installing e.g. Microsoft Word.

For this course you have three options for running the software: i) running via a remote Jupyter Lab server (no installation required, more details will be provided in class); running in the cloud (no installation required, but limited functionality); iii) running locally on your own computer (installation required, and not suitable for all).


Option 1: Install a container via Podman#

Podman is an open-source tool allowing you to run applications in a ‘container’.

Running in a container will allow you to install all the software required for this module without you having to manually install each component yourself.

Instructions can be downloaded here.


Option 2: Run in the Cloud#

No installation is needed. Every notebook has a launch button (🚀) at the top of the page. Click it and choose Google Colab to open and run the notebook directly in your browser. You will need a Google account.

Note: A small number of exercises require GPAW, which is not available on Colab. These are clearly marked in the notebooks. For those exercises, you will need to use university resources (see Option 1) or run locally (see Option 3).


Option 3: Run Locally#

Running locally gives you more flexibility, but requires careful installation.

Note: A small number of exercises require GPAW, which is not available on Windows based systems. These are clearly marked in the notebooks. For those exercises, you will need to use university resources (see Option 1).

Step 1: Install Miniforge#

Miniforge is a lightweight way to install Python and manage software environments. It is free and works on Windows, macOS, and Linux.

  1. Go to https://github.com/conda-forge/miniforge and download the installer for your operating system.

  2. Run the installer and follow the instructions. Accept the default settings unless you have a reason to change them.

  3. Open a new terminal (on Windows, open Miniforge Prompt from the Start menu; on macOS/Linux, open Terminal).

You can check the installation worked by typing:

conda --version

You should see a version number printed.

Step 2: Create the Course Environment#

A software environment keeps the packages for this course separate from anything else on your computer. To create it, copy and paste the following into your terminal:

conda create -n KL6003 python=3.11 ase gpaw mace-torch spglib matplotlib numpy jupyterlab nglview ipywidgets -c conda-forge

This may take a few minutes. When it finishes, activate the environment:

conda activate KL6003

You will need to run conda activate KL6003 each time you open a new terminal before working on this course.

Step 3: Install GPAW Datasets#

GPAW requires a set of atomic data files. With the environment active, run:

gpaw install-data

Follow the prompts and accept the default installation location.

Step 4: Download the Course Notebooks#

If you have Git installed:

git clone https://github.com/NU-CEM/Atomistic_Simulation.git
cd Atomistic_Simulation
git checkout 2026

Or download a ZIP file from the repository page by clicking Code → Download ZIP, then unzip it.

Step 5: Launch Jupyter#

With the environment active and inside the course folder, run:

jupyter lab

Your browser will open automatically. Navigate to the notebooks/ folder to find the course materials.


Checking Your Installation#

Open the first notebook (introduction.ipynb) and run all cells. If no errors appear, your installation is working correctly.

If you run into problems, please post a message on the course discussion forum (Blackboard) or raise an issue on GitHub.