https://github.com/hsma-programme/h6_7b_web_apps_1
https://github.com/hsma-programme/h6_7b_web_apps_1
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hsma-programme/h6_7b_web_apps_1
- Owner: hsma-programme
- Created: 2024-08-05T10:46:00.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-09-16T20:19:10.000Z (7 months ago)
- Last Synced: 2024-09-17T12:35:07.221Z (7 months ago)
- Language: Jupyter Notebook
- Size: 16.5 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HSMA 6 - Session 7B - Introduction to Web Apps
## Instructions if running from github codespaces
If you are using github codespaces, you will need to add some extra arguments when running your app.
`streamlit run my_app.py --server.enableCORS false --server.enableXsrfProtection false`
## Learning Objectivs
At the end of this session, students should be able to:
- Explain the basics of how a Streamlit app runs
- Create a Streamlit app containing
- Titles and text
- Images
- Dataframes
- Static or Interactive Charts
- Static or Interactive Maps
- Metrics
- Layout elements (tabs, columns, expanders, callouts)
- File uploading
- Chart, Map or data file downloading
- Explain some of the pros and cons of Streamlit versus other Python app frameworks, such as Plotly Dash, Shiny for Python, and FlaskIn this session, students will create three web applications:
- a simple calculator
- a wordcloud generator
- a dashboard## Slides
## Book
## Dataset Sources
### Exercise 3
#### Olympic Events and Results
([CC0 1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/))
#### World Population
(Creative Commons Attribution 4.0 (CC-BY 4.0))
#### World Country Centroids
(MIT License)
Copyright (c) 2021 Gavin Rehkemper
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.#### World Country Outlines
### Penguins
> Size measurements, clutch observations, and blood isotope ratios for 344 adult foraging Adélie, Chinstrap, and Gentoo penguins observed on islands in the Palmer Archipelago near Palmer Station, Antarctica. Data were collected and made available by Dr. Kristen Gorman and the Palmer Station, Antarctica Long Term Ecological Research (LTER) Program.
- [Source](https://github.com/mcnakhaee/palmerpenguins)Data are available by CC-0 license in accordance with the Palmer Station LTER Data Policy and the LTER Data Access Policy for Type I data.
Imported via the [palmerpenguins](https://github.com/mcnakhaee/palmerpenguins) package, created by [Muhammad Chenariyan Nakhaee](https://github.com/mcnakhaee).