Skip to content

Quickstart

Install Fast Dash

Let's start by installing Fast Dash:

pip install fast-dash

Simple Example

Here's the simple text to text function from the home page again.

1
2
3
4
5
from fast_dash import fastdash

@fastdash
def text_to_text_function(input_text):
    return input_text

This should spin up your first Fast Dash app!

Simple example

Simple example app

Chatbot example

Fast Dash also offers many in-built components to make development easier. These can be used as data type hints. Here's a dummy chatbot example.

1
2
3
4
5
6
7
from fast_dash import fastdash, Chat

@fastdash(theme="sketchy")
def virtual_assistant(query: str) -> Chat:
    response = "I am Groot."
    chat = dict(query=query, response=response)
    return chat

Simple example

Simple chatbot app

Image to image example

Fast Dash makes it very easy to work with different types of data types and components. For example, here's how to build an app that receives an uploaded image and returns the same image. We can, of course, write any image analysis transformation we want.

1
2
3
4
5
6
7
from fast_dash import fastdash
from PIL import Image

@fastdash
def image_to_image(image: Image.Image) -> Image.Image:
    "Example of an image to image app with Fast Dash"
    return image

This is how the deployed app looks:

Simple example

Simple image to image example app

What else is possible

There are many customizations that you can make with your app. These include:

  • Choose from different themes
  • Use any Dash component in your app
  • Add custom branding and social media icons
  • Customize pre-built components
  • Live reload
  • Minimal view
  • JupyterLab inline and embedded views

By tweaking these configurations, you can easily build web applications for a variety of use cases!

Examples

See the examples page for more executable examples.