934268bea85c85844b59db5d007410f93c6c4104,examples/disable_client.py,,,#,4

Before Change


st.text("This should not appear")

// ENABLED
st.set_config({"client.displayEnabled": True})

a = st.text("This will be overwritten")
b = st.text("This will be overwritten too")
a.text("This should show up first")

// DISABLED
st.set_config({"client.displayEnabled": False})

b.text("This overwrites b, but should not appear")
st.write("This should not appear")
st.line_chart([1, 2, 3, 4])

with st.echo():
    foo = "Nothing matters in here!"
    st.write("Nothing here will appear")

// ENABLED
st.set_config({"client.displayEnabled": True})

st.write("This should appear last")
b.text("This should appear second")

After Change


from streamlit import config

// DISABLED
config.set_option("client.displayEnabled", False)

st.text("This should not appear")

// ENABLED
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: streamlit/streamlit
Commit Name: 934268bea85c85844b59db5d007410f93c6c4104
Time: 2018-11-25
Author: adrien.g.treuille@gmail.com
File Name: examples/disable_client.py
Class Name:
Method Name:


Project Name: streamlit/streamlit
Commit Name: e26afbacbed98b578dadf90a4aa41457eee86134
Time: 2018-11-25
Author: adrien.g.treuille@gmail.com
File Name: examples/disable_client.py
Class Name:
Method Name:


Project Name: streamlit/streamlit
Commit Name: 934268bea85c85844b59db5d007410f93c6c4104
Time: 2018-11-25
Author: adrien.g.treuille@gmail.com
File Name: examples/disable_client.py
Class Name:
Method Name:


Project Name: streamlit/streamlit
Commit Name: fbfebf55126e7056fbbde005107302fbd1f61e59
Time: 2018-11-19
Author: adrien.g.treuille@gmail.com
File Name: examples/caching.py
Class Name:
Method Name: