Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 977c6f6

Browse files
authored
Merge branch 'dev' into sanity-browser-capabilities
2 parents de1b34b + 9a89c59 commit 977c6f6

16 files changed

+293
-215
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5-
## [UNRELEASED]
5+
## [4.11.2] - 2021-01-19
66
### Fixed
77
- [#854](https://github.com/plotly/dash-table/pull/854) - part of fixing dash import bug https://github.com/plotly/dash/issues/1143
88

@@ -328,7 +328,7 @@ reset the filter for the affected column(s)
328328
`'fe'` is now `'native'`, `'be'` is now `'custom'`, and `false` is now '`none'`
329329
- `column_static_dropdown`
330330
Renamed to `dropdown`.
331-
Now an object with each entry refering to a Column ID. Each nested prop expects.
331+
Now an object with each entry referring to a Column ID. Each nested prop expects.
332332
`clearable` and `options`.
333333
- `column_conditional_dropdowns`
334334
Renamed to `dropdown_conditional`.

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Use to verify the frontend functionality of the table during development or init
2727
2. Visit [http://localhost:8080/](http://localhost:8080/)
2828
### Local Server Review Apps
2929
Use the review apps to verify callback functionality (note these examples are written in Python: the end-user syntax). This will run `index.py` found in the root of the directory and run the examples found in: `/tests/dash/`. To add more examples create a `.py` file in the `/tests/dash/` directory prepended with `app_` ie: `app_your_example.py`. This example will automatically get added to the example index page.
30-
1. We recommend creating a virtual enviornment to install the requirements and run the examples. Create a virtual env with `virtualenv venv` and run with: `source venv/bin/activate`.
30+
1. We recommend creating a virtual environment to install the requirements and run the examples. Create a virtual env with `virtualenv venv` and run with: `source venv/bin/activate`.
3131
2. Run `pip install -r requirements.txt` from the root of the directory to install the requirements.
3232
3. From the root of the directory run `gunicorn index:server`
3333
4. Visit [http://127.0.0.1:8000](http://localhost:8000)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ app = dash.Dash(__name__)
2222
app.layout = dash_table.DataTable(
2323
id='table',
2424
columns=[{"name": i, "id": i} for i in df.columns],
25-
data=df.to_dict("rows"),
25+
data=df.to_dict('records'),
2626
)
2727

2828
if __name__ == '__main__':

dash_table_base/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
from __future__ import print_function as _
1+
from __future__ import print_function
22

33
import os as _os
44
import sys as _sys
55
import json
66

77
import dash as _dash
88

9-
if not hasattr(_dash, '__plotly_dash') and not hasattr(_dash, 'development'):
9+
if not hasattr(_dash, "__plotly_dash") and not hasattr(_dash, "development"):
1010
print(
1111
"Dash was not successfully imported. "
1212
"Make sure you don't have a file "

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dash-table",
3-
"version": "4.11.1",
3+
"version": "4.11.2",
44
"description": "Dash table",
55
"repository": {
66
"type": "git",
@@ -24,11 +24,11 @@
2424
"private::build:backends": "dash-generate-components src/dash-table/dash/DataTable.js dash_table -p package-info.json && cp dash_table_base/** dash_table/ && dash-generate-components src/dash-table/dash/DataTable.js dash_table -p package-info.json --r-prefix 'dash' --r-suggests 'dash' --jl-prefix 'dash'",
2525
"private::format.ts": "npm run private::lint.ts -- --fix",
2626
"private::format.prettier": "prettier --config .prettierrc --write \"src/**/*.{js,ts,tsx}\"",
27-
"private::format.black": "black --exclude dash_table .",
27+
"private::format.black": "black dash_table_base tests",
2828
"private::host_js": "http-server ./dash_table -c-1 --silent",
2929
"private::lint.ts": "tslint --project tsconfig.json --config tslint.json",
30-
"private::lint.flake": "flake8 --exclude=dash_table,node_modules,venv",
31-
"private::lint.black": "black --check --exclude dash_table .",
30+
"private::lint.flake": "flake8 dash_table_base tests",
31+
"private::lint.black": "black --check dash_table_base tests",
3232
"private::lint.prettier": "prettier --config .prettierrc \"src/**/*.{js,ts,tsx}\" --list-different",
3333
"private::wait_js": "wait-on http://localhost:8080",
3434
"private::opentests": "cypress open",

src/dash-table/dash/DataTable.js

Lines changed: 264 additions & 168 deletions
Large diffs are not rendered by default.

tests/selenium/test_basic_copy_paste.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
url = "https://github.com/plotly/datasets/raw/master/" "26k-consumer-complaints.csv"
1515
rawDf = pd.read_csv(url)
16-
df = rawDf.to_dict("rows")
16+
df = rawDf.to_dict("records")
1717

1818

1919
def get_app():

tests/selenium/test_basic_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
url = "https://github.com/plotly/datasets/raw/master/" "26k-consumer-complaints.csv"
1212
rawDf = pd.read_csv(url)
13-
df = rawDf.to_dict("rows")
13+
df = rawDf.to_dict("records")
1414

1515

1616
def get_app():

tests/selenium/test_bootstrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
url = "https://github.com/plotly/datasets/raw/master/" "26k-consumer-complaints.csv"
1111
rawDf = pd.read_csv(url)
12-
df = rawDf.to_dict("rows")
12+
df = rawDf.to_dict("records")
1313

1414

1515
def get_app(fixed_rows, fixed_columns, ops):

0 commit comments

Comments
 (0)