Giter Club home page Giter Club logo

dash-slideshow's Introduction

Slideshow using Python Dash

This project implements a simple slideshow using Python Dash. The project provides the UI framework, including navigation, and a docker-compose setup for easy local setup.

Screenshots

Agenda Slide with interactive Plot

Add your own slides

  1. Write a function in src/slides which creates the UI of your new slide
  2. Add it within src/slides/__init__.py with your intended url for this slide
  3. Eventually implement callbacks in src/callbacks for dynamic elements
  4. Callbacks are added to the dash app in src/callbacks/__init__.py

Setup using Docker

docker-compose build
docker-compose up -d

# Stop and remove container
docker-compose stop

# Restart container
docker-compose restart

You can change the title of the slideshow in app.py and once you are down developing, you can set debug to False and switch the command in the docker-compose.yml.

Development in VS Code

I'd recommend to use VS Code as it allows to develop directly inside the Docker container.

  1. Install the Docker and Remote Development extensions.
  2. Start the docker image, open Docker tab in side-panel, right-click on the container and click attach VS Code
  3. This opens the root folder in your container
  4. Open your project folder and enable extensions if you need any (e.g. python for formatting or jupyter)

By default, the dash app is started using gunicorn and the code is reloaded on each code change. In case of errors, the image would shut down which is why the app creation is wrapped within a try/except block. To check why the app fails, run python app.py from within the docker image.

Code Checks

mypy .
flake8 .
pylint src

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.