Lightcodepedia

Deploy your LightCode app to Streamlit Community Cloud (via GitHub)

Follow this guide to create a GitHub account, fork this repo, sign in to Streamlit with GitHub, create & deploy the app, and (if needed) fix a build error by switching Python to 3.10.

Prerequisites


Step 1 — Create (or sign into) your GitHub account

  1. Click Sign up (or Sign in if you already have an account).

    GitHub header: Sign up

  2. Fill the sign-up form (email, password, username, country), then Create account.

    GitHub sign-up form

  3. Go to the repository lightcodepedia and open the Fork menu.

    Fork dropdown

  4. Choose Create a new fork.

    Create a new fork menu

  5. On the Create a new fork page, keep the default name (or customize), ensure Copy the main branch only is checked, then click Create fork.

    Create a new fork page

  6. ✅ If you land on your new repo page (forked from michelzam/lightcodepedia), your fork is ready.

    Fork success repository page


Step 2 — Deploy on Streamlit Community Cloud

  1. Go to Streamlit Community Cloud https://streamlit.io/cloud and click Continue to sign-in.

    Streamlit: Continue to sign-in

  2. Click Create app (or Create your first app now).

    Create app button

  3. When prompted, click Connect to GitHub.

    Connect to GitHub modal

  4. On GitHub, click Authorize streamlit to allow access.

    Authorize Streamlit on GitHub

  5. Back in Streamlit, fill the deploy form then Deploy:

    • Repository: select your fork of lightcodepedia
    • Branch: main
    • Main file path: main.py

    Streamlit deploy form (main.py)


Troubleshooting — If an error appears during deployment

If the build fails with a Python version error:

  1. Open your app in Streamlit Cloud → Manage app.
  2. Go to SettingsGeneral (or Advanced/Runtime).
  3. Set Python version to 3.10 and click Save changes.

    Change Python to 3.10 in app settings

Lightcode. (c) KarmicSoft 2025