diff --git a/mumot/__init__.py b/mumot/__init__.py index 7f88b80..f55cbc1 100644 --- a/mumot/__init__.py +++ b/mumot/__init__.py @@ -20,8 +20,8 @@ # (e.g. superfluous figures when sliders are moved). # Automated testing using tox could be affected as well # if default matplotlib backend is used -if sys.platform == "darwin": - matplotlib.use('TkAgg') +#if sys.platform == "darwin": +matplotlib.use('TkAgg') from matplotlib import pyplot as plt from sympy.parsing.latex import parse_latex diff --git a/mumot/views.py b/mumot/views.py index 003d21b..e6d76f9 100644 --- a/mumot/views.py +++ b/mumot/views.py @@ -1653,7 +1653,6 @@ def _plot_field(self) -> None: self._update_params() self._show_computation_start() if not(self._silent): # @todo is this necessary? - plt.figure(self._figureNum) plt.clf() self._resetErrorMessage() self._showErrorMessage(str(self)) diff --git a/setup.py b/setup.py index 8347d74..c876415 100644 --- a/setup.py +++ b/setup.py @@ -29,17 +29,17 @@ install_requires=[ 'antlr4-python3-runtime', 'graphviz', - 'ipykernel<4.7', # needed so no duplicate figures when wiggle ipywidgets + 'ipykernel', 'ipython', 'ipywidgets', 'matplotlib', 'networkx', - 'notebook<5.5', # needed if using pyzmq < 17 + 'notebook', 'pydstool>=0.90.3', # min version that allows scipy >= 1.0.0 to be used - 'pyzmq<17', # needed if using tornado < 5 + 'pyzmq', 'scipy', 'sympy>=1.4', - 'tornado<5' # needed to avoid errors with older ipykernel + 'tornado' ], extras_require={ 'test': [