-
Install anaconda (follow instructions at Anaconda Installation).
-
Clone the repo, run
git clone https://github.com/Technion-Kishony-lab/data-to-paper
. -
Create a conda environment, run
conda create -n data-to-paper python=3.11
. -
Activate the newly created environment, run
conda activate data-to-paper
. -
Enter the repo root folder, run
cd data-to-paper
. -
Install the required packages, run
pip install -r requirements.txt
. -
Install the app and further required packages, run
pip install -e data_to_paper
. -
Install pandoc (follow instructions at Pandoc Installation).
-
Install all the required packages for compiling LaTeX:
- On Ubuntu:
sudo apt-get update && \ sudo apt-get install -y --no-install-recommends \ texlive-latex-base \ texlive-latex-extra \ texlive-fonts-recommended
- On MacOS:
- Ensure you have Homebrew installed (see Homebrew Installation).
- Install MacTeX with the following command:
brew install --cask mactex-no-gui
- After installation, you may need to add the TeX binaries to your PATH!
- On Windows:
- Download and install MiKTeX from MiKTeX Download Page.
- During installation, select 'Yes' when asked to install missing packages on-the-fly.
- After installation, you may need to add the TeX binaries to your PATH!
- On Ubuntu:
The Docker container is a self-contained environment that includes all the required dependencies to run the app. It is simple to install and run, but we do not recommend using it as it currently does not support the GUI app.
- Install Docker (follow instructions at https://docs.docker.com/engine/install/) and make sure docker server runs on your computer
- Clone the repo, run
git clone https://github.com/Technion-Kishony-lab/data-to-paper
- Enter the repo root folder
cd data-to-paper
- Make sure the docker service is running on the machine by running
sudo service docker start
- Build the docker container by running
docker build --pull --rm -f "Dockerfile" -t datatopaper "."
You now have the container with the repo available for run/dev
You need to define the following environment variables in your system:
- OPENAI_API_KEY
- SEMANTIC_SCHOLAR_API_KEY
- DEEPINFRA_API_KEY (optional)
To set up the keys on your system, see openai instructions