Dash

type access

  • Operating System:

  • Shell:

  • Package Manager:

  • Programming Language:

  • Database:

type access

  • Operating System:

  • Shell:

  • Package Manager:

  • Programming Language:

  • Database:

type access

  • Operating System:

  • Shell:

  • Package Manager:

  • Programming Language:

  • Database:

type access

  • Operating System:

  • Shell:

  • Package Manager:

  • Programming Language:

  • Database:

Dash is a productive Python framework for building web applications.

For more information, check here.

Select input parameters

The app receives two mandatory parameters:

  • Input file: the directory with the data and the source code

  • App: the main source file for the app, usually denoted app.py

Note

The app must be deployed on the Dash standard port, as shown in the following code snippet:

if __name__ == "__main__":
    app.run_server(host='0.0.0.0',port='8050')

Install new packages

Additional packages can be installed inside the application container using the Additional dependencies parameter. The user should provide the list of packages either via a text file (.txt) or a YAML file (*.yml/*.yaml). The installation is done via the conda command line package and environment manager. Alternatively, it is possible to load a Bash script (*.sh) with the list of shell commands to be used for the installation.

The example below shows three different ways to install the same packages:

numpy==1.21.5
pandas==1.4.3
keras==2.9.0
matplotlib==3.5.2
seaborn==0.11.2
plotly==5.9.0
name: base
channels:
  - conda-forge
  - defaults
  - numba

dependencies:
  - conda-forge::numpy=1.21.5
  - conda-forge::pandas=1.4.3
  - conda-forge::keras=2.9.0
  - conda-forge::matplotlib=3.5.2
  - conda-forge::seaborn=0.11.2
  - numba::numba=0.55.1
  - pip:
    - plotly==5.9.0
#!/usr/bin/env bash

ENV=base
set -eux

conda install -y -n $ENV -c conda-forge \
numpy=1.21.5 \
pandas=1.4.3 \
keras=2.9.0 \
matplotlib=3.5.2 \
seaborn=0.11.2

conda install -y -n $ENV -c numba numba=0.55.1

pip install plotly==4.9.0