aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/matplotlib-inline/matplotlib_inline
diff options
context:
space:
mode:
authorAlexSm <alex@ydb.tech>2024-05-06 18:27:11 +0200
committerGitHub <noreply@github.com>2024-05-06 18:27:11 +0200
commit068e8291de67631f063304b76dda3c1fd6601c12 (patch)
treef9058c69ef88f04c55ff9c92949dffa8cd6b83a5 /contrib/python/matplotlib-inline/matplotlib_inline
parent653a427438ab0fa69068180c34233b015af0d405 (diff)
parent41f0129e44731de1ba129fbae27008f8a4048fdc (diff)
downloadydb-068e8291de67631f063304b76dda3c1fd6601c12.tar.gz
Merge pull request #4325 from ydb-platform/mergelibs-240506-1255
Library import 240506-1255
Diffstat (limited to 'contrib/python/matplotlib-inline/matplotlib_inline')
-rw-r--r--contrib/python/matplotlib-inline/matplotlib_inline/__init__.py2
-rw-r--r--contrib/python/matplotlib-inline/matplotlib_inline/backend_inline.py4
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)