Streamlit

type access

  • Operating System:

  • Terminal:

  • Shell:

  • Editor:

  • Package Manager:

  • Programming Language:

  • Database:

type access

  • Operating System:

  • Terminal:

  • Shell:

  • Editor:

  • 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:

Streamlit is an open-source Python library that makes it easy to build beautiful custom web-apps for machine learning and data science.

Select input parameters

The app receives two mandatory parameters:

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

  • App: the main source file for the app

Note

The app must be deployed on the Streamlit standard port 8051.

Additional arguments of the app main file can be specified via the optional parameter: App arguments.

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.18.1
pandas==1.0.2
keras==2.3.1
matplotlib==3.2.0
seaborn==0.10.0
plotly==4.5.4
name: base
channels:
  - conda-forge
  - defaults
  - numba

dependencies:
  - conda-forge::numpy=1.18.1
  - conda-forge::pandas=1.0.2
  - conda-forge::keras=2.3.1
  - conda-forge::matplotlib=3.2.0
  - conda-forge::seaborn=0.10.0
  - numba::numba=0.48.0
  - pip:
    - plotly==4.5.4
#!/usr/bin/env bash

ENV=base
set -eux

conda install -y -n $ENV -c conda-forge \
numpy=1.18.1 \
pandas=1.0.2 \
keras=2.3.1 \
matplotlib=3.2.0 \
seaborn=0.10.0

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

pip install plotly==4.5.4