MCPcopy Create free account
hub / github.com/ipython/ipython / test_inline

Method test_inline

IPython/core/tests/test_pylabtools.py:203–215  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

201 nt.assert_equal(s.pylab_gui_select, 'qt')
202
203 def test_inline(self):
204 s = self.Shell()
205 gui, backend = s.enable_matplotlib('inline')
206 nt.assert_equal(gui, 'inline')
207 nt.assert_equal(s.pylab_gui_select, None)
208
209 gui, backend = s.enable_matplotlib('inline')
210 nt.assert_equal(gui, 'inline')
211 nt.assert_equal(s.pylab_gui_select, None)
212
213 gui, backend = s.enable_matplotlib('qt')
214 nt.assert_equal(gui, 'qt')
215 nt.assert_equal(s.pylab_gui_select, 'qt')
216
217 def test_inline_twice(self):
218 "Using '%matplotlib inline' twice should not reset formatters"

Callers

nothing calls this directly

Calls 1

enable_matplotlibMethod · 0.80

Tested by

no test coverage detected