Author: M. W. Hefner
Version 1.0.0
This web application and associated documentation is the RIEEE DataDash Python/Dash framework application template. Demonstrating by highly documented example, It securely connects to the RIEEE data server in real-time, displaying
The First Fundamental Theorem of Calculus states:
Let
- Before You Begin Developing
- Installation and Getting Started
- Usage
- Features
- Contributing
- License
Ensure that you have access to the open access documentation, such as the RIEEE DataDash development guide, and have studied those materials first.
Make sure that the RIEEE DataDash administrator has given you the permissions necessary to create a new DataDash application. For now, this includes the necessary data server permissions and corresponding config file to include in your development directory. The RIEEE data server can only be connected to directly through a secure connection; off-campus development requires the use of AppState's secure VPN software.
- First, clone the repository:
git clone https://github.com/mwhefner/datadash-application-template.git
- Navigate to the project directory:
cd datadash-application-template
- Create a python virtual environment (named "venv" in this case, but you can name it whatever you would like):
For windows:
python -m venv venv
For macOS and linux:
python3 -m venv venv
- Activate the virtual environment:
For windows:
.\venv\Scripts\activate.bat
For macOS and linux:
source venv/bin/activate
- Install the required dependencies into the virtual environment:
pip install -r requirements.txt
Note: this step may take a considerable amount of time.
- Place the config file obtained from the RIEEE DataDash administrator in the application's root directory.
- Activate the virtual environment:
For windows:
.\venv\Scripts\activate.bat
For macOS and linux:
source myenv/bin/activate
- To run the application for local development, execute the following command:
python application.py
Once the application is running, open your web browser and visit http://localhost:8050
to access the application's interface webpage.
- Closing the application:
When you're done, exit the virtual environment by using the deactivate command:
deactivate
Give a detailed description of the application's features here.
For the template, there are five navigation pages:
- The first is a demonstration of a markdown page display, which display's the project's readme.md (other markdown files should be included in the assets' markdown folder.) It is good practice to make this about page available in the applicaiton to encourage others to learn and contribute.
- The second page securely connects to the RIEEE data server and creates example plotly figures.
- The third displays a straightforward example of interactive image analysis / animation.
- The fourth page gives a sample of Dash controls in the control panel and an interactive choropleth map.
- The fifth displays 3 dimensional data.
RIEEE welcomes community involvement in the development of the DataDash platform and data science competency expanding resources! If you would like to contribute, please get in touch with RIEEE's Environmental Data Scientist Matt Hefner.
This template's python source uses detailed NumPy/SciPy docustring conventions.
Verisioning, publishing and licencing for all DataDash applications is handled through GitHub and Zenodo. See the development handbook for details.