From fa2f6e65b7a4990266fbf554a7a791e90d123c13 Mon Sep 17 00:00:00 2001 From: Septiconn Date: Thu, 7 Dec 2023 20:00:57 +0100 Subject: [PATCH 1/2] compatibility with dash>=2.10 added --- molplotly/main.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/molplotly/main.py b/molplotly/main.py index dd2fbf1..743a30b 100644 --- a/molplotly/main.py +++ b/molplotly/main.py @@ -10,7 +10,12 @@ import pandas as pd import numpy as np from dash import Input, Output, dcc, html, no_update -from jupyter_dash import JupyterDash +import dash +from packaging import version +if version.parse(dash.__version__) >= version.parse("2.11"): + from dash import Dash as JupyterDash +else: + from jupyter_dash import JupyterDash from pandas.core.groupby import DataFrameGroupBy from plotly.graph_objects import Figure import plotly.graph_objects as go From daac574b0f9e7420b770d13c58f55852200e9e08 Mon Sep 17 00:00:00 2001 From: Septiconn Date: Thu, 7 Dec 2023 20:20:10 +0100 Subject: [PATCH 2/2] packaging added to the dependences --- setup.py | 1 + setup_pip.py | 1 + 2 files changed, 2 insertions(+) diff --git a/setup.py b/setup.py index 97b6696..98a97bb 100644 --- a/setup.py +++ b/setup.py @@ -16,6 +16,7 @@ "jupyter-dash>=0.4.2", "plotly>=5.0.0", "rdkit-pypi>=2021.9.4", + "packaging", "pandas", "ipykernel", "nbformat", diff --git a/setup_pip.py b/setup_pip.py index b30163a..f4d71fb 100644 --- a/setup_pip.py +++ b/setup_pip.py @@ -25,6 +25,7 @@ "jupyter-dash>=0.4.2", "plotly>=5.0.0", "rdkit-pypi>=2021.9.4", + "packaging" "pandas", "ipykernel", "nbformat",