Skip to content

(LINUX) Developper Mode Setup

Corentin edited this page Jul 9, 2022 · 1 revision

Developper Mode Setup (Conda+Poetry):

Note: This mode is not recommended as it is harder to maintain for all users. The preferred mode to have the correct developer environment to contribute is by using the docker method !

  1. Install Tesseract package:
    sudo apt install gcc tesseract-ocr tesseract-ocr-osd tesseract-ocr-fra poppler-utils

  2. Install Python if needed.

    wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
    chmod +x Miniconda3-latest-Linux-x86_64.sh
    ./Miniconda3-latest-Linux-x86_64.sh
    conda activate base

    Install Poetry env manager (with dvc)

    conda install mamba
    mamba install -c conda-forge poetry dvc-ssh
  3. Clone the repository and create the environnement:
    git clone [email protected]:lambda-science/IMPatienT.git
    cd IMPatienT
    poetry config virtualenvs.in-project true
    poetry install

  4. Run the app with the boot developper script
    chmod +x dev_boot.sh
    ./dev_boot.sh

  5. Go to 127.0.0.1:5000/ in your web-browser and use the application. Developper account is: username: admin password: admin

Optional:

You can pull our dev-data using dvc (in conda base env): dvc pull

Clone this wiki locally