matplotlib / ipympl

Matplotlib Jupyter Integration
https://matplotlib.org/ipympl/
BSD 3-Clause "New" or "Revised" License
1.59k stars 225 forks source link

Remove unnecessary dependency `ipython_genutils` #558

Closed randolf-scholz closed 4 months ago

randolf-scholz commented 4 months ago

I noticed this project depends on ipython_genutils, which was last updated in 2017. Moreover, the only used thing from ipython_genutils was ipython_genutils.py3compat.string_types, which happens to be the tuple (str,).

from ipython_genutils.py3compat import string_types
assert string_types == (str,)  # ✅
assert string_types[0] is str  # ✅
github-actions[bot] commented 4 months ago

Binder :point_left: Launch a binder notebook on branch _randolf-scholz/ipympl/remove_ipythongenutils