From 6fd40fbc59b8b0a9f296f4e148b7b4d7ddbe00fe Mon Sep 17 00:00:00 2001 From: Bryan Rumsey Date: Wed, 18 Jan 2023 12:55:31 -0500 Subject: [PATCH] Fixed notebook plotting issues with plotly. --- spatialpy/core/domain.py | 1 - spatialpy/core/result.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/spatialpy/core/domain.py b/spatialpy/core/domain.py index f7afc481..1921cfb0 100644 --- a/spatialpy/core/domain.py +++ b/spatialpy/core/domain.py @@ -1035,7 +1035,6 @@ def plot_types(self, width=None, height=None, colormap=None, size=None, title=No if return_plotly_figure: return fig - # init_notebook_mode(connected=True) init_notebook_mode() iplot(fig) return diff --git a/spatialpy/core/result.py b/spatialpy/core/result.py index 8db5f27e..1753a1d9 100644 --- a/spatialpy/core/result.py +++ b/spatialpy/core/result.py @@ -582,7 +582,7 @@ def plot_species(self, species, t_ndx=None, t_val=None, concentration=False, if return_plotly_figure: return fig - init_notebook_mode(connected=True) + init_notebook_mode() iplot(fig) def get_property(self, property_name, timepoints=None): @@ -881,7 +881,7 @@ def plot_property(self, property_name, t_ndx=None, t_val=None, p_ndx=0, width=No if return_plotly_figure: return fig - init_notebook_mode(connected=True) + init_notebook_mode() iplot(fig) def export_to_csv(self, folder_name=None):