Skip to content

Add support for st.echo("below") to print echoed text below the Streamlit output#1452

Merged
tvst merged 1 commit intostreamlit:developfrom
tvst:echo-after
May 17, 2020
Merged

Add support for st.echo("below") to print echoed text below the Streamlit output#1452
tvst merged 1 commit intostreamlit:developfrom
tvst:echo-after

Conversation

@tvst
Copy link
Copy Markdown
Contributor

@tvst tvst commented May 15, 2020

Now you can pass the code_location argument to st.echo to specify where the echoed text should go:

    code_location : "above" or "below"
        Whether to show the echoed code before or after the results of the
        executed code block.

This was a feature request from @amiechen 😃

@tvst tvst requested a review from a team as a code owner May 15, 2020 00:33
@tvst tvst requested a review from arraydude May 15, 2020 00:33
@tvst tvst merged commit afbd6c7 into streamlit:develop May 17, 2020
@tvst tvst deleted the echo-after branch May 17, 2020 22:56
tconkling added a commit that referenced this pull request May 18, 2020
* develop:
  Keras model hash func (#1450)
  Add support for st.echo("below") to print echoed text below the Streamlit output (#1452)
  Update 3.5 references to 3.6 (#1444)
  PyTorch model hash func (#1445)
  Fix link for pipenv in Getting Started (#1455)
  TextArea and TextInput max_chars (#1423)
  Fix multiselect docstring example (#1442)
  Configuring ReadtheDocs (#1435)
  Fix "strip()" bug when internal IP is None (#1434)
tconkling added a commit to tconkling/streamlit that referenced this pull request May 26, 2020
* feature/plugins: (26 commits)
  revert accidentally-committed datframe serialization breakage
  Example PyPI package (streamlit#1462)
  If it is a windows machine, check if terminal is latest version that supports emojis (streamlit#1490)
  Remove Python 2 check in 'hello' df demo (streamlit#1486)
  Update README (streamlit#1493)
  Fix broken link by removing unnecessary 'd' (streamlit#1492)
  Update doc references for RTD (streamlit#1485)
  Remove excess parenthesis from selectbox example (streamlit#1488)
  Upgrade patch versions (streamlit#1463)
  Update date_input to accept a range for a ranged datepicker (streamlit#1483)
  radio docstring consistency in format_func param (streamlit#1480)
  Hash func for Tensorflow saved model (streamlit#1468)
  Figure out which env we are in for RTD (streamlit#1473)
  Fix component examples
  Version 0.60.0 (streamlit#1460)
  Remove extra start_time parameter (streamlit#1470)
  Fix spelling mistake in hello demo (streamlit#1469)
  Keras model hash func (streamlit#1450)
  Add support for st.echo("below") to print echoed text below the Streamlit output (streamlit#1452)
  Update 3.5 references to 3.6 (streamlit#1444)
  ...
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.

2 participants