Skip to content

Commit 6220b57

Browse files
committed
Update Display text.md
1 parent 7283e32 commit 6220b57

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

Display text.md

+37-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,37 @@
1-
# Display text
1+
# Display text
2+
3+
Sure! This code demonstrates various functions available in Streamlit, a Python library for creating interactive web applications. Here's a simple explanation for each line:
4+
5+
st.text('Follow For more content')`:
6+
7+
Displays fixed-width text in the Streamlit app.
8+
9+
st.markdown('_Markdown_')
10+
Renders Markdown text, allowing you to format text with Markdown syntax.
11+
12+
st.caption('coderhariom on github')
13+
Adds a caption to a section of the app, typically used to describe images or charts.
14+
15+
st.latex(r''' e^{i\pi} + 1 = 0 ''')
16+
Renders LaTeX mathematical expressions.
17+
18+
st.write('Most objects')
19+
Writes various objects (such as text, data frames, errors, functions, and keras models) to the Streamlit app.
20+
21+
st.write(['st', 'is <', 3])
22+
Writes a list to the app, automatically inferring the appropriate display format.
23+
24+
st.title('Share your Coder friend')
25+
Sets a title for the Streamlit app.
26+
27+
st.header('Coderhariom')
28+
Creates a header section in the app.
29+
30+
st.subheader('My sub')
31+
32+
Adds a subheader within a section of the app.
33+
34+
st.code('for i in range(8): foo()')
35+
Displays code snippets with syntax highlighting.
36+
37+
Additionally, there are comments with `#` symbols followed by `*`, indicating optional arguments for allowing HTML content to be displayed safely.

0 commit comments

Comments
 (0)