Skip to content

Commit f8b959e

Browse files
committed
Don't use IPython.utils.warn (Deprecated).
And InlineBackaedConfig was renamed in 0.12 (2011): `https://github.com/ipython/ipython/pull/923` So we can likely remove the warning.
1 parent 791d424 commit f8b959e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

config.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@
1313
# Imports
1414
#-----------------------------------------------------------------------------
1515

16-
from traitlets.config import Config
1716
from traitlets.config.configurable import SingletonConfigurable
1817
from traitlets import (
1918
Dict, Instance, Set, Bool, TraitError, Unicode
2019
)
21-
from IPython.utils.warn import warn
2220

2321
#-----------------------------------------------------------------------------
2422
# Configurable for inline backend options
@@ -41,12 +39,6 @@ class InlineBackendConfig(SingletonConfigurable):
4139
class InlineBackend(InlineBackendConfig):
4240
"""An object to store configuration of the inline backend."""
4341

44-
def _config_changed(self, name, old, new):
45-
# warn on change of renamed config section
46-
if new.InlineBackendConfig != getattr(old, 'InlineBackendConfig', Config()):
47-
warn("InlineBackendConfig has been renamed to InlineBackend")
48-
super(InlineBackend, self)._config_changed(name, old, new)
49-
5042
# The typical default figure size is too large for inline use,
5143
# so we shrink the figure size to 6x4, and tweak fonts to
5244
# make that fit.

0 commit comments

Comments
 (0)