Setting up a Python environment

Setting up a Python environment#

  1. Download the repository.

  2. Extract the content of the downloaded zip file.

  3. Open a terminal and change to the directory.

    cd path/to/mnb-image-analysis-main
    
  4. Create the Python environment.

    pixi install --all
    

    What happens?

    The Python environment with all the dependencies is created in a sub-folder .pixi. You can activate the environment using:

    pixi shell
    

    And deactivate the environment with:

    exit
    

Start the notebook#

  1. In a terminal within the repository folder, i.e.:

    cd path/to/mnb-image-analysis-main
    
  2. Run following command to start Jupyter Lab:

    pixi run jupyter lab
    

This will open a browser for interactive coding in noteoboks.