We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2cf264 commit 67fda44Copy full SHA for 67fda44
lib/matplotlib/__init__.py
@@ -1591,7 +1591,9 @@ def param(func):
1591
python_has_signature = major >= 3 and minor1 >= 3
1592
python_has_wrapped = major >= 3 and minor1 >= 2
1593
1594
- if not python_has_signature:
+ # if in a legacy version of python and IPython is already imported
1595
+ # try to use their back-ported signature
1596
+ if not python_has_signature and 'IPython' in sys.modules:
1597
try:
1598
import IPython.utils.signatures
1599
signature = IPython.utils.signatures.signature
0 commit comments