Display Code with Streamlit
Learn to display code with Streamlit.
We'll cover the following...
We'll cover the following...
We can display code in two ways.
Display code without execution
To display a block of code, we use the st.code()
method:
Press + to interact
import streamlit as stst.markdown("## Display code without execution")code = '''st.audio("https://bit.ly/rainaws3")'''st.code(code, language='python')
...