diff --git a/content/library/advanced-features/configuration.md b/content/library/advanced-features/configuration.md index b5155249a..081c0750e 100644 --- a/content/library/advanced-features/configuration.md +++ b/content/library/advanced-features/configuration.md @@ -67,7 +67,7 @@ streamlit config show The command above will print something like this: ```toml -# Streamlit version: 1.15.0 +# Streamlit version: 1.16.0 [global] diff --git a/content/library/api-cheat-sheet.md b/content/library/api-cheat-sheet.md index 842717515..10bc66ea7 100644 --- a/content/library/api-cheat-sheet.md +++ b/content/library/api-cheat-sheet.md @@ -5,7 +5,7 @@ slug: /library/cheatsheet # Cheat Sheet -This is a summary of the docs, as of [Streamlit v1.15.0](https://pypi.org/project/streamlit/1.15.0/). +This is a summary of the docs, as of [Streamlit v1.16.0](https://pypi.org/project/streamlit/1.15.0/). diff --git a/content/library/changelog.md b/content/library/changelog.md index 4f05ffd91..177184fe1 100644 --- a/content/library/changelog.md +++ b/content/library/changelog.md @@ -17,6 +17,29 @@ pip install --upgrade streamlit +## **Version 1.16.0** + +_Release date: December 14, 2022_ + +**Highlights** + +- 👩‍🎨 Introducing a new Streamlit theme for Altair, Plotly, and Vega-Lite charts! Check out our [blog post](https://blog.streamlit.io/p/f33f5232-ace6-40cf-bf4f-bad405b9d8bc/) for more information. +- 🎨 Streamlit now supports colored text in all commands that accept Markdown, including `st.markdown`, `st.header`, and more. Learn more in our [documentation](/library/api-reference/text/st.markdown). + +**Notable Changes** + +- 🔁 Functions cached with `st.experimental_memo` or `st.experimental_singleton` can contain Streamlit media elements and forms. +- ⛄ All Streamlit commands that accept pandas DataFrames as input also support Snowpark and PySpark DataFrames. +- 🏷 [st.checkbox](/library/api-reference/widgets/st.checkbox) and [st.metric](/library/api-reference/data/st.metric) can customize how to hide their labels with the `label_visibility` parameter. + +**Other Changes** + +- 🗺️ `st.map` improvements: support for upper case columns and better exception messages ([#5679](https://github.com/streamlit/streamlit/pull/5679), [#5792](https://github.com/streamlit/streamlit/pull/5792)). +- 🐞 Bug fix: `st.plotly_chart` respects the figure’s height attribute and the `use_container_width` parameter ([#5779](https://github.com/streamlit/streamlit/pull/5779)). +- 🪲 Bug fix: all commands with the `icon` parameter such as [st.error](/library/api-reference/status/st.error), [st.warning](/library/api-reference/status/st.warning), etc, can contain emojis with variant selectors ([#5583](https://github.com/streamlit/streamlit/pull/5583)). +- 🐝 Bug fix: prevent `st.camera_input` from jittering when resizing the browser window ([#5661](https://github.com/streamlit/streamlit/pull/5711)). +- 🐜 Bug fix: update exception layout to avoid overflow of stack traces ([#5700](https://github.com/streamlit/streamlit/pull/5700)). + ## **Version 1.15.0** _Release date: November 17, 2022_ diff --git a/pages/index.js b/pages/index.js index f64680ff8..eda5d8f3c 100644 --- a/pages/index.js +++ b/pages/index.js @@ -149,69 +149,62 @@ export default function Home({ window, menu, gdpr_data }) {

What's new

- - music_note -

NumPy support for st.audio

+ + palette +

Streamlit theme for Plotly & Altair

- st.audio can now properly play audio data from - NumPy arrays with the sample_rate parameter. - Click to see a demo. 🎶 + 1.16.0 includes a new default theme for Altair and Plotly + charts in Streamlit apps through the{" "} + theme="streamlit" + keyword argument in st.altair_chart, st.vega_lite_chart, and + st.plotly_chart.

- label -

Markdown in widget labels

+ brush +

Colored text support in Markdown

- Widget labels can contain inline Markdown. Click to check out - the demo app and see how it works. + Streamlit now supports colored text in all commands that + accept Markdown, including st.markdown,{" "} + st.header, and more! Click to read the + documentation.

- replay -

Replay cached widgets

+ ac_unit +

Snowpark and PySpark support

- Functions cached with the memo and singleton cache primitives - can contain input widgets. To enable widget replay, set the - keyword-only - experimental_allow_widgets parameter to{" "} - True. This allows caching checkboxes, sliders, - radio buttons, and more! + All Streamlit commands that accept pandas DataFrames as input + also support Snowpark and PySpark DataFrames.

- - production_quantity_limits - -

Limit st.multiselect options

+ music_note +

NumPy support for st.audio

- 🤏 st.multiselect has a keyword-only{" "} - max_selections parameter to limit the number of - options that can be selected at a time. + st.audio can now properly play audio data from + NumPy arrays with the sample_rate parameter. + Click to see a demo. 🎶

- palette -

Primary and secondary buttons

+ label +

Markdown in widget labels

- st.button and st.form_submit_button{" "} - support designating buttons as "primary" (for additional - emphasis) or "secondary" (for normal buttons) with the{" "} - type keyword-only parameter. + Widget labels can contain inline Markdown. Click to check out + the demo app and see how it works.

visibility_off

Widget label visibility

- Widgets can customize how to hide their labels with the - label_visibility parameter. Click to see an example! + All widgets and commands that support the label + parameter can customize how to hide their labels with the + label_visibility parameter. Click to see an + example!

{/* Latest blog posts + - diff --git a/public/blog-1.svg b/public/blog-1.svg index 8d9ffaf5c..28145221c 100644 --- a/public/blog-1.svg +++ b/public/blog-1.svg @@ -1,191 +1,129 @@ - + # Background - # 3 incomplete browser frames at the top - - - - + # Left browser + + + + + + + + - - - - + # Top-right browser + + + + + - - - - + # Bottom-right browser + + + + + - - - # 3 incomplete browser frames at the bottom - - - - - - - - - - - - - - - - - - - - - - - - - - - - # The two important ones at the center - - - - - # Image - - - - - - - - - - - - - - # Image - - - - - - - + + + # Filters and stuff - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + - - + + + + + + + + + + + - + - - + + - + - - - - + - - + + - + - - + + - + - - - - + - - + + - + + # Image definitions - + - + + + + - + # Gradient - + \ No newline at end of file diff --git a/public/blog-2.svg b/public/blog-2.svg index 2fd4ab3a5..8d9ffaf5c 100644 --- a/public/blog-2.svg +++ b/public/blog-2.svg @@ -174,10 +174,10 @@ - + - + @@ -185,7 +185,7 @@ # Gradient - + \ No newline at end of file diff --git a/public/blog-3.svg b/public/blog-3.svg index 8e5d7cbac..2fd4ab3a5 100644 --- a/public/blog-3.svg +++ b/public/blog-3.svg @@ -1,64 +1,191 @@ + - # Group - + # Background + - # White background - + # 3 incomplete browser frames at the top + + + + + + - # Gradient - + + + + + + - # Browser styles - - # Path to image - + + + + + + - # Background - + # 3 incomplete browser frames at the bottom + + + + + + - # Stroke - + + + + + + + + - # Circles - - - + + + + + + + + + + + # The two important ones at the center + + + + + # Image + + + + + + + + + + + + + + # Image + + + + + + + + - # Definitions - - # Filters - + # Filters and stuff + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - # Image - - + + + - - # Gradient - - - # Browser clip path - + + + + + + + # Gradient + + \ No newline at end of file diff --git a/python/api-examples-source/hello/requirements.txt b/python/api-examples-source/hello/requirements.txt index 627e35ee3..ec1dd441f 100644 --- a/python/api-examples-source/hello/requirements.txt +++ b/python/api-examples-source/hello/requirements.txt @@ -8,4 +8,4 @@ numpy==1.22.0 scipy altair==4.2.0 pydeck==0.7.1 -streamlit==1.15.1 \ No newline at end of file +streamlit==1.16.0 \ No newline at end of file diff --git a/python/api-examples-source/mpa-hello/requirements.txt b/python/api-examples-source/mpa-hello/requirements.txt index 8f56c1e62..bd34766e8 100644 --- a/python/api-examples-source/mpa-hello/requirements.txt +++ b/python/api-examples-source/mpa-hello/requirements.txt @@ -9,4 +9,4 @@ scipy altair==4.2.0 pydeck==0.7.1 opencv-python-headless==4.6.0.66 -streamlit==1.15.1 \ No newline at end of file +streamlit==1.16.0 \ No newline at end of file diff --git a/python/api-examples-source/requirements.txt b/python/api-examples-source/requirements.txt index 4d3f1f6c9..1f742d9ae 100644 --- a/python/api-examples-source/requirements.txt +++ b/python/api-examples-source/requirements.txt @@ -8,4 +8,4 @@ numpy==1.22.0 scipy altair==4.2.0 pydeck==0.7.1 -streamlit==1.15.1 +streamlit==1.16.0 diff --git a/python/api-examples-source/theming/requirements.txt b/python/api-examples-source/theming/requirements.txt index f3fad8eff..1f88c90b7 100644 --- a/python/api-examples-source/theming/requirements.txt +++ b/python/api-examples-source/theming/requirements.txt @@ -1,4 +1,4 @@ -./python/api-examples-source/theming/streamlit-1.13.0-py2.py3-none-any.whl +streamlit==1.16.0 vega_datasets altair==4.2.0 plotly==5.1.0 diff --git a/python/api-examples-source/theming/streamlit-1.13.0-py2.py3-none-any.whl b/python/api-examples-source/theming/streamlit-1.13.0-py2.py3-none-any.whl deleted file mode 100644 index c32d7f1dd..000000000 Binary files a/python/api-examples-source/theming/streamlit-1.13.0-py2.py3-none-any.whl and /dev/null differ