aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/ipython/py2/IPython/core/pylabtools.py
diff options
context:
space:
mode:
authorNikita Slyusarev <nslus@yandex-team.com>2022-02-10 16:46:53 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:53 +0300
commit469afdc4e2587bf62ecdd096b75a0baa444c4012 (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /contrib/python/ipython/py2/IPython/core/pylabtools.py
parentcd77cecfc03a3eaf87816af28a33067c4f0cdb59 (diff)
downloadydb-469afdc4e2587bf62ecdd096b75a0baa444c4012.tar.gz
Restoring authorship annotation for Nikita Slyusarev <nslus@yandex-team.com>. Commit 2 of 2.
Diffstat (limited to 'contrib/python/ipython/py2/IPython/core/pylabtools.py')
-rw-r--r--contrib/python/ipython/py2/IPython/core/pylabtools.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/python/ipython/py2/IPython/core/pylabtools.py b/contrib/python/ipython/py2/IPython/core/pylabtools.py
index ace18b57e8..a1932d8c48 100644
--- a/contrib/python/ipython/py2/IPython/core/pylabtools.py
+++ b/contrib/python/ipython/py2/IPython/core/pylabtools.py
@@ -377,7 +377,7 @@ def configure_inline_support(shell, backend):
from ipykernel.pylab.backend_inline import InlineBackend
except ImportError:
return
- import matplotlib
+ import matplotlib
cfg = InlineBackend.instance(parent=shell)
cfg.shell = shell
@@ -391,9 +391,9 @@ def configure_inline_support(shell, backend):
# Save rcParams that will be overwrittern
shell._saved_rcParams = dict()
for k in cfg.rc:
- shell._saved_rcParams[k] = matplotlib.rcParams[k]
+ shell._saved_rcParams[k] = matplotlib.rcParams[k]
# load inline_rc
- matplotlib.rcParams.update(cfg.rc)
+ matplotlib.rcParams.update(cfg.rc)
new_backend_name = "inline"
else:
from ipykernel.pylab.backend_inline import flush_figures
@@ -402,7 +402,7 @@ def configure_inline_support(shell, backend):
except ValueError:
pass
if hasattr(shell, '_saved_rcParams'):
- matplotlib.rcParams.update(shell._saved_rcParams)
+ matplotlib.rcParams.update(shell._saved_rcParams)
del shell._saved_rcParams
new_backend_name = "other"