Introduction

Shiny makes it easy to build interactive web applications with the power of Python’s data and scientific stack.

Approachable: Write your application in Python; no web development skills required. Flexible: Built from the ground up to support custom layouts, styles, and the modularity required for full-fledged applications, all from Python. Performance: Uses creativity to efficiently handle data processing and minimize expensive re-computations.

Step by step

1. Installing Python


    Before you go any further, Make sure you already installed Python and that the expected version is available from your command line. You can check this by running:


    Unix/macOS

    python3 --version or python --version

    The result will be like this

    Windows

    py --version

      If you don’t have python yet, go head and install it.

2. Installing Shiny


    Install with pip
    1. If you want to use a virtual environment, create/activate one now. If not skip this step


      # Create a virtual environment in the .venv subdirectory
      python3 -m venv venv
      
      # Activate the virtual environment
      source venv/bin/activate


    1. Install shinylibrary.


      Open terminal type pip install shiny and pip install --upgrade shiny htmltools. You can use pip list to list all of library you installed with pip.

      You may on occasion need to force installation of updated versions of our packages, since they are in development pip install --upgrade shiny htmltools

    Install with conda
    1. If you want to use a virtual environment, create/activate one now. If not skip this step

      # Create a conda environment named 'myenv'
      conda create --name myenv
      
      # Activate the virtual environment
      conda activate myenv

    1. Install shinylibrary.

        Open terminal type conda install -c conda-forge shiny and conda update -c conda-forge shiny


3. Installing VSCode

4. Start create Shiny app for Python.


5. Deploy the Python App on shinyapps.io