Skip to content

Conversation

@akrolsmir
Copy link
Contributor

@akrolsmir akrolsmir commented Jan 22, 2021

See https://www.notion.so/streamlit/Always-Rerun-should-be-the-default-09fcc67fa96940a9b9447c18b48003d7:

Background

Changing the source file of a Streamlit app brings this up:
image

  • Always rerun seems like a better default; most users want this behavior
  • Some users do not want this behavior; we should allow them to
  • There is an existing config option "server.runOnSave" which defaults to False
  • server.runOnSave is true for S4A; this lets a git push to quickly update an S4A app.
    • There is a new config option "server.allowRunOnSave" which was hacked in for the S4A launch, preventing users from turning off this behavior.

Proposal

DECISION: Change the default on the existing "server.runOnSave" to True.

Users can opt out by setting it to False.

See https://www.notion.so/streamlit/Always-Rerun-should-be-the-default-09fcc67fa96940a9b9447c18b48003d7:

## Background

Changing the source file of a Streamlit app brings this up:

![https://s3-us-west-2.amazonaws.com/secure.notion-static.com/81400e8d-f287-4533-828d-9b187e722973/Screen_Shot_2020-10-22_at_12.13.17_PM.png](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/81400e8d-f287-4533-828d-9b187e722973/Screen_Shot_2020-10-22_at_12.13.17_PM.png)

- Always rerun seems like a better default; most users want this behavior
- Some users do not want this behavior; we should allow them to
- There is an existing config option "server.runOnSave" which defaults to False
- server.runOnSave is true for S4A; this lets a git push to quickly update an S4A app.
    - There is a new config option "server.allowRunOnSave" which was hacked in for the S4A launch, preventing users from turning off this behavior.

## Proposal

DECISION: Change the default on the existing "server.runOnSave" to True.

Users can opt out by setting it to False.
@akrolsmir akrolsmir requested a review from a team January 22, 2021 16:37
@karriebear karriebear requested review from kantuni and removed request for kantuni January 22, 2021 19:09
@asaini
Copy link

asaini commented Jan 23, 2021

LGTM 👍

@akrolsmir akrolsmir merged commit a63ab82 into streamlit:develop Jan 25, 2021
tconkling added a commit to tconkling/streamlit that referenced this pull request Jan 25, 2021
* develop:
  Display a warning when not run via `streamlit run` (streamlit#2643)
  Extract a shared radio component for use within our UI (streamlit#2657)
  🔧 "Run on save" now defaults to true (streamlit#2641)
  Bump year to 2021 in license headers (streamlit#2654)
  Switched react-katex package (streamlit#2619)
  Don't add license headers for files in node_modules and cypress folders (streamlit#2655)
karriebear added a commit that referenced this pull request Feb 2, 2021
karriebear added a commit that referenced this pull request Feb 2, 2021
tconkling added a commit to tconkling/streamlit that referenced this pull request Feb 2, 2021
* develop:
  Fix svg rendering in st.image() (streamlit#2666)
  Indicate widgets need to have labels (streamlit#2688)
  Clean up file update calls (streamlit#2597)
  Revert "🔧 "Run on save" now defaults to true (streamlit#2641)" (streamlit#2694)
tconkling added a commit to tconkling/streamlit that referenced this pull request Feb 2, 2021
* develop:
  Fix svg rendering in st.image() (streamlit#2666)
  Indicate widgets need to have labels (streamlit#2688)
  Clean up file update calls (streamlit#2597)
  Revert "🔧 "Run on save" now defaults to true (streamlit#2641)" (streamlit#2694)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants