sourcelines = reset_indentation(remove_docstring(sourcelines))
st.code("".join(sourcelines))
else:
st.title("Welcome to Streamlit!")
st.write(
Streamlit is the best way to create bespoke apps.
After Change
st.write(inspect.getdoc(demo))
// Clear everything from the intro page.
// We only have 4 elements in the page so this is intentional overkill.
for i in range(10):
st.empty()
demo()
if show_code:
st.markdown("//// Code")
sourcelines, n_lines = inspect.getsourcelines(demo)