eagle0504's picture
app updated
746d2f1

A newer version of the Streamlit SDK is available: 1.48.1

Upgrade
metadata
title: Utilities and user info
slug: /develop/api-reference/utilities

Utilities and user info

There are a handful of methods that allow you to create placeholders in your app, provide help using doc strings, get and modify configuration options and query parameters.

User info

st.experimental_user returns information about the logged-in user of private apps on Streamlit Community Cloud.

if st.experimental_user.email == "[email protected]":
  st.write("Welcome back, ", st.experimental_user.email)
else:
  st.write("You are not authorized to view this page.")

Get help

Display object’s doc string, nicely formatted.

st.help(st.write)
st.help(pd.DataFrame)

Render HTML

Renders HTML strings to your app.

css = """
<style>
    p { color: red; }
</style>
"""
st.html(css)