2323 'osx' : 'MacOSX' ,
2424 'nbagg' : 'nbAgg' ,
2525 'notebook' : 'nbAgg' ,
26- 'inline' : 'module://ipython_kernel .pylab.backend_inline' }
26+ 'inline' : 'module://ipykernel .pylab.backend_inline' }
2727
2828# We also need a reverse backends2guis mapping that will properly choose which
2929# GUI support to activate based on the desired matplotlib backend. For the
@@ -182,7 +182,7 @@ def select_figure_formats(shell, formats, **kwargs):
182182 Extra keyword arguments to be passed to fig.canvas.print_figure.
183183 """
184184 from matplotlib .figure import Figure
185- from ipython_kernel .pylab import backend_inline
185+ from ipykernel .pylab import backend_inline
186186
187187 svg_formatter = shell .display_formatter .formatters ['image/svg+xml' ]
188188 png_formatter = shell .display_formatter .formatters ['image/png' ]
@@ -233,7 +233,7 @@ def find_gui_and_backend(gui=None, gui_select=None):
233233 Returns
234234 -------
235235 A tuple of (gui, backend) where backend is one of ('TkAgg','GTKAgg',
236- 'WXAgg','Qt4Agg','module://ipython_kernel .pylab.backend_inline').
236+ 'WXAgg','Qt4Agg','module://ipykernel .pylab.backend_inline').
237237 """
238238
239239 import matplotlib
@@ -334,7 +334,7 @@ def configure_inline_support(shell, backend):
334334 # continuing (such as in terminal-only shells in environments without
335335 # zeromq available).
336336 try :
337- from ipython_kernel .pylab .backend_inline import InlineBackend
337+ from ipykernel .pylab .backend_inline import InlineBackend
338338 except ImportError :
339339 return
340340 from matplotlib import pyplot
@@ -345,7 +345,7 @@ def configure_inline_support(shell, backend):
345345 shell .configurables .append (cfg )
346346
347347 if backend == backends ['inline' ]:
348- from ipython_kernel .pylab .backend_inline import flush_figures
348+ from ipykernel .pylab .backend_inline import flush_figures
349349 shell .events .register ('post_execute' , flush_figures )
350350
351351 # Save rcParams that will be overwrittern
@@ -355,7 +355,7 @@ def configure_inline_support(shell, backend):
355355 # load inline_rc
356356 pyplot .rcParams .update (cfg .rc )
357357 else :
358- from ipython_kernel .pylab .backend_inline import flush_figures
358+ from ipykernel .pylab .backend_inline import flush_figures
359359 try :
360360 shell .events .unregister ('post_execute' , flush_figures )
361361 except ValueError :
0 commit comments