diff options
author | Alexander Smirnov <alex@ydb.tech> | 2024-05-06 12:56:16 +0000 |
---|---|---|
committer | Alexander Smirnov <alex@ydb.tech> | 2024-05-06 12:56:16 +0000 |
commit | f92674dbdb92b9e717f952166ffa8307beec4251 (patch) | |
tree | 90180e24c75a6be69d35b81d2ec58395a8380c78 /contrib/python/matplotlib-inline/matplotlib_inline | |
parent | da52d326c570ca0b3284ba4bb5f1a380360afaf5 (diff) | |
parent | 86fa90c3f199cb8af7bb07188a11da49f5e8e984 (diff) | |
download | ydb-f92674dbdb92b9e717f952166ffa8307beec4251.tar.gz |
Merge branch 'rightlib' into mergelibs-240506-1255
Diffstat (limited to 'contrib/python/matplotlib-inline/matplotlib_inline')
-rw-r--r-- | contrib/python/matplotlib-inline/matplotlib_inline/__init__.py | 2 | ||||
-rw-r--r-- | contrib/python/matplotlib-inline/matplotlib_inline/backend_inline.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/contrib/python/matplotlib-inline/matplotlib_inline/__init__.py b/contrib/python/matplotlib-inline/matplotlib_inline/__init__.py index f7ef1dd1a5..dce942f899 100644 --- a/contrib/python/matplotlib-inline/matplotlib_inline/__init__.py +++ b/contrib/python/matplotlib-inline/matplotlib_inline/__init__.py @@ -1,2 +1,2 @@ from . import backend_inline, config # noqa -__version__ = "0.1.6" # noqa +__version__ = "0.1.7" # noqa diff --git a/contrib/python/matplotlib-inline/matplotlib_inline/backend_inline.py b/contrib/python/matplotlib-inline/matplotlib_inline/backend_inline.py index 6bcc1d4a01..05554b0d22 100644 --- a/contrib/python/matplotlib-inline/matplotlib_inline/backend_inline.py +++ b/contrib/python/matplotlib-inline/matplotlib_inline/backend_inline.py @@ -176,7 +176,7 @@ def configure_inline_support(shell, backend): if cfg not in shell.configurables: shell.configurables.append(cfg) - if backend == 'module://matplotlib_inline.backend_inline': + if backend in ('inline', 'module://matplotlib_inline.backend_inline'): shell.events.register('post_execute', flush_figures) # Save rcParams that will be overwrittern @@ -211,7 +211,7 @@ def _enable_matplotlib_integration(): from matplotlib import get_backend ip = get_ipython() backend = get_backend() - if ip and backend == 'module://%s' % __name__: + if ip and backend in ('inline', 'module://matplotlib_inline.backend_inline'): from IPython.core.pylabtools import activate_matplotlib try: activate_matplotlib(backend) |