Skip to content

Commit

Permalink
add requirements.txt instead of pip install dash[diskcache]
Browse files Browse the repository at this point in the history
I initially tried adding dash[diskcache] to the requirements.txt but couldn't make it work. It turns out that all `pip install dash[diskcache]` does is include these 3 packages which are optional dependencies of dash
https://github.com/plotly/dash/blob/dev/requirements/diskcache.txt
Adding these to the requirements.txt has the same effect.
  • Loading branch information
JGreenlee committed Dec 17, 2024
1 parent 0072ab9 commit 9ee3ef5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion docker/setup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/bin/bash
source setup/activate.sh
pip install -r dashboard_setup/requirements.txt
pip install dash[diskcache]
5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@ flask-talisman==1.0.0
dash_auth==2.0.0
arrow==1.3.0
dash-leaflet==1.0.7
# dash[diskcache] dependencies
# from https://github.com/plotly/dash/blob/dev/requirements/diskcache.txt
diskcache>=5.2.1
multiprocess>=0.70.12
psutil>=5.8.0

0 comments on commit 9ee3ef5

Please sign in to comment.