Set up#

Running on Microsoft Azure Kubernetes deployment#

For the tutorial running from 4-7 October 2022, we have set up a JupyterHub deployment based on the AiiDAlab docker stack and a Kubernetes cluster on Microsoft Azure. The JupyterHub is accessible via the following link:

https://aiida-tutorial-2022.aiidalab.io/

Authentication is done via GitHub, just click the “Sign in with GitHub button” to get started. If you don’t have a GitHub account yet, you’ll have to sign up for one:

GitHub authentication step 1

Fig. 1 Signing into GitHub.#

Once you’ve signed in, the GitHub authentication needs some basic information regarding your profile. Click “Authorize aiidalab” to continue.

GitHub authentication step 2

Fig. 2 Authorizing the AiiDAlab authentication.#

Once you’ve managed to authenticate successfully, you should see the JupyterLab interface. Try to open a terminal and type verdi status. If you see all green checkmarks, everything is set up successfully and you should be ready to go!

Important

As the tutorial has been fully tested on the Azure JupyterHub deployment, we highly recommend tutorial participants to run the tutorial material here! However, the Azure cluster will be taken down on Sunday October 16th at 23:59 CEST.

To download your files from the server prior to its destruction:

  1. Open a terminal by clicking on “Terminal” on the start screen.

  2. Execute zip -r home.zip .

  3. Right-click on the home.zip file within the file browser tab.

  4. Click on “Download”.

You do not have to download the whole home directory of course, you can just download the files or directories that you would like to preserve.

If you want to export your full AiiDA profile into an archive, you can use:

$ verdi archive create --all tutorial.aiida

and then simply download the file from the JupyterHub cluster and import it wherever you want to continue working on the material.

Note

Deploying AiiDAlab on Microsoft Azure

Interested in having your own deployment of AiiDAlab on the Microsoft Azure Kubernetes Service? You can find all instructions on the corresponding GitHub repository:

https://github.com/aiidalab/aiidalab-on-azure

Setup on your own machine#

To run the tutorial on your own machine, you need to install:

Note

Version numbers indicate the versions with which the tutorial was tested.

using AiiDAlab Launch#

AiiDAlab Launch makes it easy to run AiiDA on your own workstation or laptop.

To use AiiDAlab launch you will have to

  1. Install Docker on your workstation or laptop and Manage Docker as a non-root user.

  2. Install AiiDAlab launch with pipx (recommended):

    pipx install aiidalab-launch
    

    Or directly with pip (pip install aiidalab-launch).

  3. Create a profile for tutorial

    aiidalab-launch profiles add tutorial
    

    It will ask you to edit the profile, since for the tutorial we only need the AiiDA environment, answer Y and let’s remove the aiidalab-widgets-base from the default_apps list (or the whole default_apps line).

  4. Start AiiDAlab for tutorial profile with

    aiidalab-launch start -p tutorial
    
  5. Follow the instructions on screen to open AiiDAlab in the browser.

See aiidalab-launch --help for detailed help.