Skip to content

Commit

Permalink
Merge branch 'develop' into tim/FormProto
Browse files Browse the repository at this point in the history
* develop: (21 commits)
  Remove depressing emojis (streamlit#2565)
  Go back to v1 metrics. (streamlit#2572)
  Up version to 0.74.1
  Revert "Upgrade react-hotkeys (streamlit#2525)"
  Revert "Upgrade react-markdown (streamlit#2527)"
  Revert "Revert "Deploy button py (streamlit#2535)""
  Revert "Deploy button py (streamlit#2535)"
  Update change log
  Update notices
  Up version to 0.74.0
  Update instructions placement on number input (streamlit#2549)
  Fix broken url (streamlit#2540)
  Deploy button front (streamlit#2552)
  Bump camelcase from 5.3.1 to 6.2.0 in /frontend (streamlit#2558)
  Fix block-container styles for sidebar (streamlit#2551)
  Bump @types/lodash from 4.14.165 to 4.14.167 in /frontend (streamlit#2550)
  Bump axios from 0.19.2 to 0.21.1 in /frontend (streamlit#2548)
  Remove deprecation message + add config expiration (streamlit#2546)
  Deploy button py (streamlit#2535)
  Remove aws-sdk (streamlit#2545)
  ...
  • Loading branch information
tconkling committed Jan 11, 2021
2 parents df16a26 + 9c7eeaa commit 0c2d488
Show file tree
Hide file tree
Showing 66 changed files with 1,212 additions and 1,181 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ cffi_bin

# Pyenv Stuff
.python-version
venv

# Autogenerated Protobufs
lib/streamlit/proto/*_pb2.py
Expand Down
878 changes: 86 additions & 792 deletions NOTICES

Large diffs are not rendered by default.

13 changes: 12 additions & 1 deletion docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ This page lists highlights, bug fixes, and known issues for official Streamlit r
$ pip install --upgrade streamlit
```

## Version 0.74.0

_Release date: January 6, 2021_

**Notable Changes**

- 💾 [`st.file_uploader`](https://docs.streamlit.io/en/0.74.0/api.html#streamlit.file_uploader). has been stabilized and the deprecation warning
and associated configuration option (`deprecation.showfileUploaderEncoding`) has been removed.
- 📊 [`st.bokeh_chart`](https://docs.streamlit.io/en/0.74.0/api.html#streamlit.bokeh_chart) is no longer duplicated when the page loads.
- 🎈 Fixed page icon to support emojis with variants (i.e. 🤦‍♀️ vs 🤦🏼‍♀️) or dashes (i.e 🌙 - crescent-moon).

## Version 0.73.0

_Release date: December 17, 2020_
Expand All @@ -26,7 +37,7 @@ _Release date: December 17, 2020_
yet compatible with Python 3.9 and must use version 3.8 or earlier.
- 🧱 Streamlit Components now allows same origin, enabling features provided by
the browser such as a webcam component.
- 🐙 Fix Streamlit Share deploy experience for users running on Git versions
- 🐙 Fix Streamlit sharing deploy experience for users running on Git versions
2.7.0 or earlier.
- 🧰 Handle unexpected closing of uploaded files for [`st.file_uploader`](https://docs.streamlit.io/en/0.72.0/api.html#streamlit.file_uploader).

Expand Down
2 changes: 1 addition & 1 deletion docs/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ First, we'll create a new Python script and import Streamlit.
.. tip::
Did you know you can also pass a URL to `streamlit run`? This is great when combined with Github Gists. For example:
`$ streamlit run https://raw.githubusercontent.com/streamlit/demo-uber-nyc-pickups/master/app.py`
`$ streamlit run https://raw.githubusercontent.com/streamlit/demo-uber-nyc-pickups/master/streamlit_app.py`
```

4. You can kill the app at any time by typing **Ctrl+c** in the terminal.
Expand Down
2 changes: 1 addition & 1 deletion docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Streamlit.
.. tip::
Did you know you can also pass a URL to `streamlit run`? This is great when combined with Github Gists. For example:
`$ streamlit run https://raw.githubusercontent.com/streamlit/demo-uber-nyc-pickups/master/app.py`
`$ streamlit run https://raw.githubusercontent.com/streamlit/demo-uber-nyc-pickups/master/streamlit_app.py`
```

4. You can kill the app at any time by typing **Ctrl+c** in the terminal.
2 changes: 1 addition & 1 deletion docs/main_concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ are available to you.
You can also pass a URL to `streamlit run`! This is great when combined with
Github Gists. For example:
`$ streamlit run https://raw.githubusercontent.com/streamlit/demo-uber-nyc-pickups/master/app.py`
`$ streamlit run https://raw.githubusercontent.com/streamlit/demo-uber-nyc-pickups/master/streamlit_app.py`
```

## Development flow
Expand Down
6 changes: 1 addition & 5 deletions docs/streamlit_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Shows all config options available for Streamlit, including their current
values:

```bash
# last updated 2020-12-03
# last updated 2021-01-04

[global]

Expand Down Expand Up @@ -226,10 +226,6 @@ token = ""

[deprecation]

# Set to false to disable the deprecation warning for the file uploader encoding.
# Default: "True"
showfileUploaderEncoding = "True"

# Set to false to disable the deprecation warning for the image format parameter.
# Default: "True"
showImageFormat = "True"
Expand Down
2 changes: 1 addition & 1 deletion docs/troubleshooting/sanity-checks.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pip install --upgrade streamlit
streamlit version
```

...and then verify that the version number printed is `0.73.1`.
...and then verify that the version number printed is `0.74.1`.

**Try reproducing the issue now.** If not fixed, keep reading on.

Expand Down
4 changes: 1 addition & 3 deletions e2e/scripts/st_file_uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,12 @@

import streamlit as st

st.set_option("deprecation.showfileUploaderEncoding", True)
single_file = st.file_uploader("Drop a file:", type=["txt"], encoding="encoding")
single_file = st.file_uploader("Drop a file:", type=["txt"])
if single_file is None:
st.text("No upload")
else:
st.text(single_file.read())

st.set_option("deprecation.showfileUploaderEncoding", False)
multiple_files = st.file_uploader(
"Drop multiple files:", type=["txt"], accept_multiple_files=True
)
Expand Down
3 changes: 2 additions & 1 deletion e2e/specs/st_echo.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ describe("st.echo", () => {
});

it("echos a code", () => {
cy.get(".element-container .stMarkdown").contains(
cy.get(".element-container .stMarkdown").should(
"have.text",
`print("This code is awesome!")`
);
});
Expand Down
16 changes: 0 additions & 16 deletions e2e/specs/st_file_uploader.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,6 @@ describe("st.file_uploader", () => {
.matchImageSnapshot("multi_file_uploader");
});

it("shows deprecation warning", () => {
cy.get("[data-testid='stFileUploader']")
.first()
.parent()
.prev()
.should("contain", "FileUploaderEncodingWarning");
});

it("hides deprecation warning", () => {
cy.get("[data-testid='stFileUploader']")
.last()
.parent()
.prev()
.should("not.contain", "FileUploaderEncodingWarning");
});

it("shows error message for not allowed files", () => {
const fileName = "example.json";

Expand Down
2 changes: 1 addition & 1 deletion e2e/specs/st_main_menu.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe("main menu", () => {
cy.get('[data-testid="main-menu-popover"]').invoke(
"attr",
"style",
"transform: translate3d(20px, 20px, 0px)"
"transform: translate3d(20px, 20px, 0px);"
);
cy.get('[data-testid="main-menu-list"]').matchImageSnapshot("main_menu");

Expand Down
2 changes: 1 addition & 1 deletion e2e/specs/st_markdown.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe("st.markdown", () => {
expect(els[2].textContent).to.eq("This HTML tag is not escaped!");
expect(els[3].textContent).to.eq("[text]");
expect(els[4].textContent).to.eq("link");
expect(els[5].textContent).to.eq("[][]");
expect(els[5].textContent).to.eq("");
expect(els[6].textContent).to.eq("Inline math with KATXE\\KaTeXKATE​X");
expect(els[7].textContent).to.eq(
"ax2+bx+c=0ax^2 + bx + c = 0ax2+bx+c=0"
Expand Down
11 changes: 11 additions & 0 deletions e2e/specs/st_number_input.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,17 @@ describe("st.number_input", () => {
);
});

it("displays instructions correctly on change", () => {
cy.get(".stNumberInput input")
.first()
.clear()
.type("10");

cy.get(".stNumberInput")
.first()
.matchImageSnapshot("number_input_change");
});

it("sets value correctly on enter keypress", () => {
cy.get(".stNumberInput input")
.first()
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 7 additions & 8 deletions frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "streamlit-browser",
"version": "0.73.1",
"version": "0.74.1",
"private": true,
"homepage": "./",
"scripts": {
Expand Down Expand Up @@ -45,10 +45,9 @@
"@emotion/styled": "^10.0.27",
"@loaders.gl/core": "^2.2.8",
"@loaders.gl/csv": "^2.2.8",
"aws-sdk": "^2.729.0",
"axios": "^0.19.2",
"axios": "^0.21.1",
"baseui": "9.106.0",
"camelcase": "^5.2.0",
"camelcase": "^6.2.0",
"classnames": "^2.2.6",
"clipboard": "^2.0.6",
"color2k": "^1.1.0",
Expand Down Expand Up @@ -80,17 +79,17 @@
"react-dropzone": "^11.2.0",
"react-feather": "^2.0.8",
"react-google-login": "^5.1.21",
"react-hotkeys": "^2.0.0",
"react-hotkeys": "^1.1.4",
"react-json-view": "^1.19.1",
"react-katex": "^2.0.2",
"react-map-gl": "^5.2.7",
"react-markdown": "^5.0.3",
"react-markdown": "^4.3.1",
"react-plotly.js": "^2.4.0",
"react-transition-group": "^4.4.1",
"react-virtualized": "^9.21.2",
"react-window": "^1.8.5",
"remark-emoji": "^2.1.0",
"remark-math": "^4.0.0",
"remark-math": "^2.0.1",
"sprintf-js": "^1.1.2",
"styletron-engine-atomic": "^1.4.6",
"styletron-react": "^5.2.6",
Expand All @@ -115,7 +114,7 @@
"@types/hoist-non-react-statics": "^3.3.1",
"@types/jest": "^26.0.19",
"@types/katex": "^0.10.2",
"@types/lodash": "^4.14.159",
"@types/lodash": "^4.14.167",
"@types/mocha": "^5.2.7",
"@types/moment-duration-format": "^2.2.2",
"@types/node": "^14.14.16",
Expand Down

0 comments on commit 0c2d488

Please sign in to comment.