Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Marc Skov Madsen
authored and
Marc Skov Madsen
committed
Feb 5, 2020
1 parent
b0728ae
commit ab191b2
Showing
7 changed files
with
87 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+839 KB
(110%)
gallery/global_power_plant_database/global_power_plant_database.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion
2
gallery/global_power_plant_database/global_power_plant_database.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+3.04 MB
gallery/global_power_plant_database/global_power_plant_database_small.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import streamlit as st | ||
import time | ||
|
||
slider_ph = st.empty() | ||
info_ph = st.empty() | ||
|
||
value = slider_ph.slider("slider", 0, 100, 25, 1) | ||
info_ph.info(value) | ||
|
||
if st.button('animate'): | ||
for x in range(20): | ||
time.sleep(.5) | ||
|
||
value = slider_ph.slider("slider", 0, 100, value + 1, 1) | ||
info_ph.info(value) |