Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ jobs:

- run:
name: Run build:py
command: npm run private::build:py
command: |
. venv/bin/activate
npm run private::build:py

- run:
name: Run tests
Expand Down
2 changes: 1 addition & 1 deletion .config/webpack/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports = (preprocessor = {}, mode = 'development') => {
module: {
rules: [
{
test: /demo[/]index.html?$/,
test: /demo[/\\]index.html?$/,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh.. windows!

loader: 'file-loader?name=index.[ext]'
},
{
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [3.1.6] - 2018-11-15
### Changed
- Generate python components classes for IDE support [#243](https://github.com/plotly/dash-table/pull/243)

## [3.1.5] - 2018-11-09
### Fixed
- Fix python package regression [#235](https://github.com/plotly/dash-table/issues/235)
Expand Down
334 changes: 334 additions & 0 deletions dash_table/DataTable.py

Large diffs are not rendered by default.

15 changes: 7 additions & 8 deletions dash_table/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

import dash as _dash

# noinspection PyUnresolvedReferences
from ._imports_ import *
from ._imports_ import __all__

if not hasattr(_dash, 'development'):
print('Dash was not successfully imported. '
'Make sure you don\'t have a file '
Expand All @@ -21,10 +25,6 @@
__version__ = package['version']

_current_path = _os.path.dirname(_os.path.abspath(__file__))
_components = _dash.development.component_loader.load_components(
_os.path.join(_current_path, 'metadata.json'),
package_name
)

_this_module = _sys.modules[__name__]

Expand All @@ -42,7 +42,6 @@
_css_dist = []


for _component in _components:
setattr(_this_module, _component.__name__, _component)
setattr(_component, '_js_dist', _js_dist)
setattr(_component, '_css_dist', _css_dist)
for _component in __all__:
setattr(locals()[_component], '_js_dist', _js_dist)
setattr(locals()[_component], '_css_dist', _css_dist)
6 changes: 6 additions & 0 deletions dash_table/_imports_.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from .DataTable import DataTable


__all__ = [
"DataTable",
]
2 changes: 1 addition & 1 deletion dash_table/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dash_table/demo.js

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions dash_table/package-info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dash-table",
"version": "3.1.5",
"version": "3.1.6",
"description": "Dash table",
"main": "dash_table/bundle.js",
"scripts": {
Expand All @@ -11,7 +11,10 @@
"private::build:js-dev": "run-s \"private::build -- --mode development\"",
"private::build:js-test": "run-s \"private::build -- --config webpack.test.config.js\"",
"private::build:js-test-watch": "run-s \"private::build -- --config webpack.test.config.js --watch\"",
"private::build:py": "./extract-meta src/dash-table/DataTable.js > dash_table/metadata.json && cp package.json dash_table/package-info.json",
"private::build:extract-meta": "node ./extract-meta src/dash-table/DataTable.js > dash_table/metadata.json",
"private::build:copy-package-info": "cp package.json dash_table/package-info.json",
"private::build:generate-classes": "python -c \"import dash; dash.development.component_loader.generate_classes('dash_table', 'dash_table/metadata.json')\"",
"private::build:py": "run-s private::build:copy-package-info private::build:extract-meta private::build:generate-classes",
"private::host_dash8081": "python tests/cypress/dash/v_be_page.py",
"private::host_dash8082": "python tests/cypress/dash/v_copy_paste.py",
"private::host_dash8083": "python tests/cypress/dash/v_fe_page.py",
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dash-table",
"version": "3.1.5",
"version": "3.1.6",
"description": "Dash table",
"main": "dash_table/bundle.js",
"scripts": {
Expand All @@ -11,7 +11,10 @@
"private::build:js-dev": "run-s \"private::build -- --mode development\"",
"private::build:js-test": "run-s \"private::build -- --config webpack.test.config.js\"",
"private::build:js-test-watch": "run-s \"private::build -- --config webpack.test.config.js --watch\"",
"private::build:py": "./extract-meta src/dash-table/DataTable.js > dash_table/metadata.json && cp package.json dash_table/package-info.json",
"private::build:extract-meta": "node ./extract-meta src/dash-table/DataTable.js > dash_table/metadata.json",
"private::build:copy-package-info": "cp package.json dash_table/package-info.json",
"private::build:generate-classes": "python -c \"import dash; dash.development.component_loader.generate_classes('dash_table', 'dash_table/metadata.json')\"",
"private::build:py": "run-s private::build:copy-package-info private::build:extract-meta private::build:generate-classes",
"private::host_dash8081": "python tests/cypress/dash/v_be_page.py",
"private::host_dash8082": "python tests/cypress/dash/v_copy_paste.py",
"private::host_dash8083": "python tests/cypress/dash/v_fe_page.py",
Expand Down