This folder contains the Lumos backend code. It computes Wall et al.'s [1] metrics as a quantitative measure of analytic focus and establishes a bi-directional communication channel with the Lumos frontend.
Python 3.10
- Linkpip
- Link - package installer for Pythonvenv
- Link - Serves files in virtual environment
py -3.10 -m venv venv
- create a python3 virtual environment called venv in the current directoryvenv\Scripts\activate.bat
- enters the virtual environment- FROM THIS POINT ON: only use
python
command to invoke interpreter, avoid using global commandpy
!!
- FROM THIS POINT ON: only use
python3.10 -m venv venv
/virtualenv --python=python3.10 venv
- create a python3 virtual environment called venvsource venv/bin/activate
- enters the virtual environment- FROM THIS POINT ON: only use
python
command to invoke interpreter, avoid using global commandpython3.10
!!
- FROM THIS POINT ON: only use
python -m pip install --upgrade pip setuptools wheel
python -m pip install -r requirements.txt
- installs required libraries local to this project environmentpython -m pip install numpy --no-use-pep517
(for M1 Mac. For others, maybe try without--no-use-pep517
)python -m pip install pandas --no-use-pep517
(for M1 Mac. For others, maybe try without--no-use-pep517
)
- Execute
python server.py
- This server is served at
http://localhost:3000
. The production build of the frontend (built usingng build
) is served from thepublic
directory. Check the ../app/README.md for more information. Update this in theapp
repository atapp/src/app/models/config.ts
>DeploymentConfig.SERVER_URL
[1] - Wall, Emily, et al. "Warning, bias may occur: A proposed approach to detecting cognitive bias in interactive visual analytics." 2017 IEEE Conference on Visual Analytics Science and Technology (VAST). IEEE, 2017.