Posts

Streamlit by dataprofessor

Image
https://www.youtube.com/watch?v=JwSS70SZdyM&t=5s  import streamlit as st # to write the text. here '#' represents heading 1 (H1). ## - H2. it follows markdown language. ref-  https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet st.write(""" # title  **this is bold** and ***This is bold and italics*** """)  # to draw the linechart st.line_chart('column_name') # to run the app streamlit run app_name.py # to show the image and expand to column width. from PIL import Image image= Image.open('logo.jpg') st.image( image, use_column_width=True) #for HR (horizontal) line. *** # for header st.header('this is header') # for subheader st.subheader('this is subheader') # for text box. if we decrease the height then we have to scroll. sequence_inp= ">DNA sequence\nabcde" st.text_area("Sequence Input", sequence_inp, height=250) # to display the dataframe. st.write(dataframe) or st.dataframe(d...