Skip to content

Commit 0c829a9

Browse files
committed
Add some explaining text to the streamlit example
1 parent 1eafbb9 commit 0c829a9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

examples/streamlit-example.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,22 @@ def render_graph(
3838

3939

4040
VG = create_visualization_graph()
41+
4142
st.title("Neo4j Viz Streamlit Example")
43+
st.text(
44+
"This is an example of how to use Streamlit with the Graph "
45+
"Visualization for Python library by Neo4j."
46+
)
4247

4348
with st.sidebar:
4449
height = st.slider("Height in pixels", 100, 2000, 600, 50)
4550
show_code = st.checkbox("Show code")
4651

4752
st.header("Visualization")
53+
st.text(
54+
"A visualization of the famous Cora citation network. Each of its "
55+
"seven scientific subjects is represented by a different color."
56+
)
4857

4958
components.html(
5059
# Feel free to change these values according your own data an screen size

0 commit comments

Comments
 (0)