From 13e9959da5c2d54f1ed9f917e60ba63397de8fbf Mon Sep 17 00:00:00 2001 From: alexcjohnson Date: Wed, 9 Dec 2020 22:08:53 -0500 Subject: [PATCH 1/2] improve dash import test see https://github.com/plotly/dash/issues/1143 --- dash_table_base/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dash_table_base/__init__.py b/dash_table_base/__init__.py index 81ae91c4b..1d1f520c5 100644 --- a/dash_table_base/__init__.py +++ b/dash_table_base/__init__.py @@ -9,7 +9,7 @@ from ._imports_ import * # noqa: F401, F403 from ._imports_ import __all__ -if not hasattr(_dash, "development"): +if not hasattr(_dash, '__plotly_dash') and not hasattr(_dash, 'development'): print( "Dash was not successfully imported. " "Make sure you don't have a file " From 839afb0d57af46fc8ad18b9e23086fa648415ce6 Mon Sep 17 00:00:00 2001 From: alexcjohnson Date: Wed, 9 Dec 2020 23:21:33 -0500 Subject: [PATCH 2/2] changelog for import bug fix --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fb14d0461..643c671c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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/). +## [UNRELEASED] +### Fixed +- [#854](https://github.com/plotly/dash-table/pull/854) - part of fixing dash import bug https://github.com/plotly/dash/issues/1143 + ## [4.11.1] - 2020-12-07 ### Fixed - [#844](https://github.com/plotly/dash-table/pull/844) Fix a bug where the table is using classes that are styled by Bootstrap