Skip to content

Commit

Permalink
Fixing PEP8 compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
jordancaraballo committed Jun 25, 2023
1 parent c00748e commit 5f0a394
Show file tree
Hide file tree
Showing 6 changed files with 455 additions and 38 deletions.
14 changes: 3 additions & 11 deletions pages/pages/1_⚡_Alaskan_Tundra_Lightning.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import folium
import streamlit as st
from folium.plugins import Draw
from streamlit_folium import st_folium

st.set_page_config(
page_title="streamlit-folium documentation: Draw Support",
Expand All @@ -9,21 +12,10 @@
"""
# streamlit-folium: Draw Support
Folium supports some of the [most popular leaflet plugins](https://python-visualization.github.io/folium/plugins.html). In this example,
we can add the [`Draw`](https://python-visualization.github.io/folium/plugins.html#folium.plugins.Draw) plugin to our map, which allows for drawing geometric shapes on the map.
When a shape is drawn on the map, the coordinates that represent that shape are passed back as a geojson feature via
the `all_drawings` and `last_active_drawing` data fields.
Draw something below to see the return value back to Streamlit!
"""

with st.echo(code_location="below"):
import folium
import streamlit as st
from folium.plugins import Draw

from streamlit_folium import st_folium

m = folium.Map(location=[39.949610, -75.150282], zoom_start=5)
Draw(export=True).add_to(m)
Expand Down
14 changes: 3 additions & 11 deletions pages/pages/2_🌍_Alaska_WRF.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import folium
import streamlit as st
from folium.plugins import Draw
from streamlit_folium import st_folium

st.set_page_config(
page_title="streamlit-folium documentation: Draw Support",
Expand All @@ -9,21 +12,10 @@
"""
# streamlit-folium: Draw Support
Folium supports some of the [most popular leaflet plugins](https://python-visualization.github.io/folium/plugins.html). In this example,
we can add the [`Draw`](https://python-visualization.github.io/folium/plugins.html#folium.plugins.Draw) plugin to our map, which allows for drawing geometric shapes on the map.
When a shape is drawn on the map, the coordinates that represent that shape are passed back as a geojson feature via
the `all_drawings` and `last_active_drawing` data fields.
Draw something below to see the return value back to Streamlit!
"""

with st.echo(code_location="below"):
import folium
import streamlit as st
from folium.plugins import Draw

from streamlit_folium import st_folium

m = folium.Map(location=[39.949610, -75.150282], zoom_start=5)
Draw(export=True).add_to(m)
Expand Down
Loading

0 comments on commit 5f0a394

Please sign in to comment.