From 053ceb51cfced2c7cc95f20e914b0a2980882f1f Mon Sep 17 00:00:00 2001 From: Randolf Scholz Date: Tue, 2 Jul 2024 14:21:07 +0200 Subject: [PATCH] removed unnecessary dependency --- ipympl/backend_nbagg.py | 3 +-- pyproject.toml | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/ipympl/backend_nbagg.py b/ipympl/backend_nbagg.py index 45dde922..24f6e9e3 100644 --- a/ipympl/backend_nbagg.py +++ b/ipympl/backend_nbagg.py @@ -31,7 +31,6 @@ from IPython import get_ipython from IPython import version_info as ipython_version_info from IPython.display import HTML, display -from ipython_genutils.py3compat import string_types from ipywidgets import DOMWidget, widget_serialization from matplotlib import is_interactive, rcParams from matplotlib._pylab_helpers import Gcf @@ -248,7 +247,7 @@ def __init__(self, figure, *args, **kwargs): def send_state(self, key=None): if key is None: keys = self.keys - elif isinstance(key, string_types): + elif isinstance(key, str): keys = [key] elif isinstance(key, Iterable): keys = key diff --git a/pyproject.toml b/pyproject.toml index e0ce26b8..f09e202a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,7 +42,6 @@ classifiers = [ ] dependencies = [ "ipython<9", - "ipython_genutils", "ipywidgets>=7.6.0,<9", "matplotlib>=3.4.0,<4", "numpy",