Last active
September 22, 2019 17:18
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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