Skip to main content

MolSSI Dashboard (Flask-coreUI)

This application is a results Dashboard for the SEAMM project. It is built using the Flask web framework and the CoreUI template. The dashboard is designed to be used with the SEAMM Datastore.

Install the SEAMM dashboard

To install the SEAMM dashboard, it is recommended that you it install it, along with SEAMM using the installation instructions.

The SEAMM installation tutorial will walk you through installing and running the SEAMM dashboard. If you are interested in developing the SEAMM dashboard, you can install it from this repository using the directions below.

Development Install from this Repository

To install the dashboard for development, you should first fork this repository to your own GitHub account. Then clone the forked repository to your computer. For example, if you are using SSH, type

git clone git@github.com/YOUR_FORK/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

Next, do a development install of the package:

make dev-install

Installing the Datastore (Required)

For a development install, you must all install the SEAMM Datastore.

You must also install the SEAMM Datastore. This is the package that manages the database connection. If you are developing for SEAMM, you might find it useful to install the SEAMM Datastore in development mode. To do this, clone the repository and install it in development mode:

git clone https://github.com/molssi-seamm/seamm_datastore.git
cd seamm_datstore
pip install -e .

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

make run-demo

Open a browser and navigate to http://localhost:5505/ 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.

If you would like to run the same demo dashboard in development/debug mode, use the command

make run-dev

This will run the demo dashboard in debug mode, which will allow you to make changes to the code and see the changes reflected in the dashboard. Note that the dashboard will restart when you make changes to the code. The development dashboard will be available at http://localhost:5000/.

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.

Metadata

Release files for seamm-dashboard 2024.6.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for seamm-dashboard 2024.6.2
File Size Uploaded
seamm_dashboard-2024.6.2.tar.gz 2.7 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for seamm-dashboard 2024.6.2
File Interpreter ABI Platform
seamm_dashboard-2024.6.2-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 5.4 MB

Release files / seamm_dashboard-2024.6.2.tar.gz

Download URL seamm_dashboard-2024.6.2.tar.gz
Size 2.7 MB
Tags Source
SHA-256 checksum
How to use checksums
fb98a83317d87f677138b93a0dfd0fe3b2c7f2d2df83fdaf54caa113fcf5d530
BLAKE2b-256 checksum
How to use checksums
544c97046ad73f78f3e0504437c4f14f6ad0066f75c1132f3635f65fe492389a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / seamm_dashboard-2024.6.2-py2.py3-none-any.whl

Download URL seamm_dashboard-2024.6.2-py2.py3-none-any.whl
Size 2.7 MB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
263a9709cb44c7346bba6d4bb44ee5e1f157c405520f80fa7291f0ef97de5cb2
BLAKE2b-256 checksum
How to use checksums
ab03de02d3c90df8f2294d7ff74914ad2d04e93d437ae0713d3f888481a83410
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

2024.6.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page