Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposing a bit more conda #58

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion INSTALLATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ streamlit run main.py

## Updating

To update the `dashboard` environment for changes to dependencies defined in `environment.yml`, remove the environment and re-create it:
To update the `dashboard` environment for changes to dependencies defined in `environment_conda.yml`, remove the environment and re-create it:
```
make env_remove
make env_create
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ env_remove:

env_create:
conda env create -f environment_conda.yml
conda env update -f environment_conda_forge.yml

docker_build:
docker build -t dashboard:latest .
Expand Down
35 changes: 11 additions & 24 deletions environment_conda.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,14 @@
name: dashboard
channels:
- conda-forge
- default
dependencies:
- python=3.9
- sqlalchemy
- pip
- pip:
- streamlit
- watchdog
- plotly
- pycoingecko
- glom
- defillama
- statsmodels
- pandas_ta
- pyyaml
- commlib-py
- jupyter
- optuna
- optuna-dashboard
- pathlib
- streamlit-ace
- st-pages
- streamlit-elements==0.1.*
- git+https://github.com/hummingbot/hbot-remote-client-py.git
- git+https://github.com/hummingbot/docker-manager.git
# default
- jupyter>=1.0.0
- pathlib
- pip>=23.2.1
- plotly
- python
- pyyaml
- sqlalchemy>=1.4.0,<2.0.0
- statsmodels
- watchdog
25 changes: 25 additions & 0 deletions environment_conda_forge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: dashboard
channels:
- default
dependencies:
# conda-forge only
- conda-forge::glom
- conda-forge::hiredis>=2.1.1
- conda-forge::optuna
- conda-forge::optuna-dashboard
- conda-forge::paho-mqtt>=1.6.1
- conda-forge::pandas-ta
- conda-forge::pika>=1.3.1
- conda-forge::pycoingecko>=3.1.0
- conda-forge::pydantic==1.10.4
- conda-forge::streamlit==1.24.1
- conda-forge::ujson>=5.7.0
- pip>=23.2.1
- pip:
- commlib-py
- defillama
- st-pages
- streamlit-ace
- streamlit-elements==0.1.*
- git+https://github.com/hummingbot/hbot-remote-client-py.git # This could be a hummingbot channel conda package
- git+https://github.com/hummingbot/docker-manager.git # This could be a hummingbot channel conda package
6 changes: 4 additions & 2 deletions pages/strategy_performance/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@

@st.cache_resource
def get_databases():
sqlite_files = [db_name for db_name in os.listdir("data") if db_name.endswith(".sqlite")]
databases_list = [DatabaseManager(db) for db in sqlite_files]
databases_list = []
if "data" in os.listdir():
sqlite_files = [db_name for db_name in os.listdir("data") if db_name.endswith(".sqlite")]
databases_list = [DatabaseManager(db) for db in sqlite_files]
return {database.db_name: database for database in databases_list}


Expand Down