Skip to content

Instantly share code, notes, and snippets.

@treuille
Last active September 22, 2019 17:18
Show Gist options
  • Save treuille/c84d78967b9ddc9474ed53054fa0efee to your computer and use it in GitHub Desktop.
Save treuille/c84d78967b9ddc9474ed53054fa0efee to your computer and use it in GitHub Desktop.
Show that there's a bug with implicit arguments when running Streamlit remotely.
import streamlit as st
x = st.slider('x', 0, 10)
y = st.slider('y', 0, 10)
@st.cache
def add_to_y(x):
return y + x
st.show(add_to_y(x))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment