GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - hsma-programme/hsma7_2g_streamlit_part1: HSMA-7 Module 2G: Creating a DES interface with Streamlit - Part 1

BranchesTags
Open more actions menu

Latest commit

 

History

61 Commits
61 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
app
app
 
 
slides
slides
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

HSMA-7 Module 2G: Creating a DES interface with Streamlit - Part 1

This repository contains materials for module 2H:

  • app/

    • app/singlepage/ - simple one page app which runs simulation and displays results.
    • app/multipage/ - added a home page and demonstrates set-up with st.navigation().
    • Within each of these is a copy of the model used by the app (model.py).
  • exercises/ - exercise materials.

  • slides/ - Quarto slides.

    • slides/slides.qmd - main slides file.
    • slides/code/ - Python examples, kept separate to make the slides file easier to read and search.
    • template - templates and assets for creating the HSMA slide style.

The slides are deployed on GitHub pages via GitHub actions and can be viewed via the browser at: https://hsma-programme.github.io/hsma7_2g_streamlit_part1.

The example apps are deployed with Streamlit Community Cloud and can be viewed at:

  • https://hsma-des-simple.streamlit.app
  • https://hsma-des-multipage.streamlit.app

Viewing the example app locally

Activate the HSMA des GitHub environment. The environment file required is available in https://github.com/hsma-chief-elf/H7_Phase_1_Artefacts: DES_2/environment/environment.yml.

Note: A record of the packages needed is also available in this repository under app/requirements.txt as it is required for deployment.

mamba activate des

To view the single page app:

streamlit run app/singlepage/app.py

To view the multipage app:

streamlit run app/multipage/app.py

Viewing the slides locally

The slides environment is defined in slides/environment.yml. It is similar to the HSMA des environment, but with a few extra dependencies required for rendering the slides. A requirements.txt is also provided for use by GitHub actions.

mamba env create --file slides/environment.yml
mamba activate hsma7_streamlit_slides

To view the slides:

quarto preview slides/slides.qmd

About

HSMA-7 Module 2G: Creating a DES interface with Streamlit - Part 1

hsma-programme.github.io/hsma7_2g_streamlit_part1/

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.