The Web Dashboard for SEAMM (Simulation Environment for Atomistic and Molecular Simulations).
Project description
MolSSI Dashboard (Flask-coreUI)
This application is a results Dashboard for MolSSI projects.
The server runs Flask on Passenger and Apache, or can run flask testing server.
Install the SEAMM dashboard
Install from PyPi
You can install the SEAMM Dashboard from PyPi. First create a conda environment for the dashboard.
conda create -n seamm-dashboard python=3.9
conda activate seamm-dashboard
Next, install from conda
pip install seamm-dashboard
Install from this repository
To get the most up-to-date version of the dashboard, install the package from this repository.
git clone https://github.com/molssi-seamm/seamm_dashboard.git
cd seamm_dashboard
To create the seamm-dashboard
environment and install the necessary packages, type
$ make environment
in the top level of your directory.
After the script is finished running, activate the SEAMM Dashboard conda environment:
conda activate seamm-dashboard
Installing the Datastore (Required)
You must also install the SEAMM Datastore. This is the package that manages the database connection. We are working on getting it on PyPi. For now, navigate to the repository. You should clone this repository and install the package. Make sure you are not in the SEAMM dashboard directory if you installed from GitHub in the previous step.
git clone https://github.com/molssi-seamm/seamm_datastore.git
cd seamm_datstore
pip install .
If your conda environment is activated, you're ready to start running the dashboard.
Running the dashboard
You can then run the dashboard after you have installed and activated the dashboard environment.
Run a demo dashboard
If you do not have SEAMM installed, you can view a demo dashboard by using the data in this repository. Use the command
./results_dashboard.py --initialize --datastore $(pwd)/data --jwt-secret-key 'super-secret' --secret-key 'another-super-secret'
If you are running the dashboard in production, you should use better secrets.
Open a browser and navigate to http://localhost:5000/
to view the sample dashboard. Running the sample dashboard will create a user in the database with the same username you use on your computer the default password is default
.
Running with SEAMM installed
If you have SEAMM installed, you can connect to your seamm datastore. In the top level of the repository, type the following command into the terminal:
results_dashboard.py
The dashboard can then be viewed in your browser at localhost:5000
. By default, the dashboard uses the location of the datastore in ~/.seamm/seamm.ini to locate the datastore to display. This can, however, be overridden by a command line argument --datastore xxxx
. There are other options available. For more information run
results_dashboard.py --help
usage: results_dashboard.py [-h] [--dashboard-configfile DASHBOARD_CONFIGFILE] [--datastore DATASTORE] [--initialize] [--no-check]
[--log-level {CRITICAL,ERROR,WARNING,INFO,DEBUG,NOTSET}] [--console-log-level {CRITICAL,ERROR,WARNING,INFO,DEBUG,NOTSET}] [--log_dir LOG_DIR]
...
optional arguments:
-h, --help show this help message and exit
--dashboard-configfile DASHBOARD_CONFIGFILE
a configuration file to override others (default: None)
--datastore DATASTORE
The datastore (directory). [env var: SEAMM_DATASTORE] (default: .)
--initialize initialize, or reinitialize, from the job files [env var: INITIALIZE] (default: False)
--no-check do not check that jobs are in the database [env var: NO_CHECK] (default: False)
--log-level {CRITICAL,ERROR,WARNING,INFO,DEBUG,NOTSET}
the logging level for the dashboard [env var: LOG_LEVEL] (default: INFO)
...
By default, if the database does not exist, it will be initialized from the job files in the datastore. Otherwise, the dashboard will scan the job files on startup and add any missing ones to the database. You can prevent this initial check with --nocheck
. Similarly, if you wish to force the database to be recreated from scratch, use the --initialize
flag.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file seamm-dashboard-2022.9.29.tar.gz
.
File metadata
- Download URL: seamm-dashboard-2022.9.29.tar.gz
- Upload date:
- Size: 1.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c0abe9f62e0ad65bcb1ea1098f306a8a3bbe8a9eeb607332fec95b506983adc |
|
MD5 | c875e0a6d164824e30629c6275d157a7 |
|
BLAKE2b-256 | 1ba42b5b2aba9999d26793531d6656a206ebdc18948062e80a6ae44c15ee67dd |
File details
Details for the file seamm_dashboard-2022.9.29-py2.py3-none-any.whl
.
File metadata
- Download URL: seamm_dashboard-2022.9.29-py2.py3-none-any.whl
- Upload date:
- Size: 1.7 MB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1027f9b9ab7e872c7ac716bb73484ebc585d07cd90fffe3b74943ec7b564bd14 |
|
MD5 | 04fd97c9a959d3e8a819bb4f3a324fa0 |
|
BLAKE2b-256 | 6a1aa7b04479f47354d0681d78227ce57da23aaf1b8c71fb572d4f49b0d0e56d |