Getting set up

Note

You are highly encouraged to run these steps before the tutorial. We will also set aside some time during the tutorial to get everyone set up.

During this tutorial, we’ll use Quarto to aggregate our apps (app store) and HuggingFace Spaces to deploy them. Please sign up for a HuggingFace account.

We will also review Google Cloud Run for hosting (optional). If you wish to follow along, please install gcloud CLI (optional).

Setup Python environment locally

We’ll required Python 3.9+ for this tutorial. You can download it here.

  1. Clone the Github repo and install dependencies
git clone https://github.com/dkedar7/show_your_work
  1. Install dependencies

Open the repo with your favorite text editor, create a virtual environment and install dependencies.

cd show_your_work
python -m venv .venv

source .venv/bin/activate # For Linux and MacOS
.venv\Scripts\activate # For Windows

pip install -r requirements.txt
  1. Add environment to Jupyter kernel list
python -m ipykernel install --user --name="showyourwork"
  1. Launch Jupyter Lab to follow along
jupyter lab

Test your setup

Launch a new Jupyter notebook, and run the following cell

from fast_dash import fastdash

@fastdash
def simple_app(text: str):
    output_text = "This is my first Fast Dash app!"
    return output_text
Note

If you have any questions or feedback, please email me at kdabhadk@gmail.com.