Skip to content
Open

fh #5

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"jupyter.jupyterServerType": "local"
"jupyter.jupyterServerType": "local",
"liveServer.settings.port": 5501
}
10 changes: 5 additions & 5 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def load_penguins():
df.index = pd.date_range(start="1/1/18", periods=len(df), freq="D")


with st.beta_container():
with st.container():
st.title("Python Data Visualization Tour")
st.header("Popular plots in popular plotting libraries")
st.write("""See the code and plots for five libraries at once.""")
Expand All @@ -55,13 +55,13 @@ def load_penguins():
# User choose type
chart_type = st.selectbox("Choose your chart type", plot_types)

with st.beta_container():
with st.container():
st.subheader(f"Showing: {chart_type}")
st.write("")

two_cols = st.checkbox("2 columns?", True)
if two_cols:
col1, col2 = st.beta_columns(2)
col1, col2 = st.columns(2)


# create plots
Expand Down Expand Up @@ -102,12 +102,12 @@ def show_plot(kind: str):
with col2:
show_plot(kind="Bokeh")
else:
with st.beta_container():
with st.container():
for lib in libs:
show_plot(kind=lib)

# display data
with st.beta_container():
with st.container():
show_data = st.checkbox("See the raw data?")

if show_data:
Expand Down