- right click on project root folder > select open in terminal
python -m venv .venv
to setup python virtual environment for this project. TIP: copy from here and right click in terminal to paste-and-execute.- Dialog should come up asking you want this env as interpreter for project: answer yes.
- If no to (3) on blue ribbon at bottom of VSCODE, on left click on interpreter, chose the venv one you just created.
- Might get some bits and both e.g. 'install pylint' etc. click install for them.
pip install -r requirements.txt
to install packagespip install -e .
to make editable- Run
./dash_app/index.py
to run with dev server. (Running./production.py
runs usinggunicorn
in production environment)
Use pip-chill
to freeze requirements file, rather than pip freeze
and delete dash_app
line that's created.
pip-chill > requirements.txt
Uses this Heroku buildpack for LFS.