You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I start through the command "ipython notebook", A cell with "%pylab inline" throws the below error.
Welcometopylab, amatplotlib-basedPythonenvironment [backend: module://IPython.zmq.pylab.backend_inline].
Formoreinformation, type'help(pylab)'.
---------------------------------------------------------------------------RuntimeErrorTraceback (mostrecentcalllast)
<ipython-input-1-550caa57204a>in<module>()
---->1get_ipython().magic(u'pylab inline')
C:\Python27\Lib\site-packages\IPython\core\interactiveshell.pycinmagic(self, arg_s)
2134magic_name, _, magic_arg_s=arg_s.partition(' ')
2135magic_name=magic_name.lstrip(prefilter.ESC_MAGIC)
->2136returnself.run_line_magic(magic_name, magic_arg_s)
21372138#-------------------------------------------------------------------------C:\Python27\Lib\site-packages\IPython\core\interactiveshell.pycinrun_line_magic(self, magic_name, line)
2060args.append(sys._getframe(stack_depth).f_locals)
2061withself.builtin_trap:
->2062result=fn(*args)
2063returnresult2064C:\Python27\Lib\site-packages\IPython\core\magics\pylab.pycinpylab(self, parameter_s)
C:\Python27\Lib\site-packages\IPython\core\magic.pycin<lambda>(f, *a, **k)
189# but it's overkill for just that one bit of state.190defmagic_deco(arg):
-->191call=lambdaf, *a, **k: f(*a, **k)
192193ifcallable(arg):
C:\Python27\Lib\site-packages\IPython\core\magics\pylab.pycinpylab(self, parameter_s)
86import_all_status=True87--->88self.shell.enable_pylab(parameter_s, import_all=import_all_status)
C:\Python27\Lib\site-packages\IPython\core\interactiveshell.pycinenable_pylab(self, gui, import_all)
2790# Now we must activate the gui pylab wants to use, and fix %run to take2791# plot updates into account->2792self.enable_gui(gui)
2793self.magics_manager.registry['ExecutionMagics'].default_runner= \
2794mpl_runner(self.safe_execfile)
C:\Python27\Lib\site-packages\IPython\zmq\eventloops.pycinenable_gui(gui, kernel)
220loop=loop_map[gui]
221ifkernel.eventloopisnotNoneandkernel.eventloopisnotloop:
-->222raiseRuntimeError("Cannot activate multiple GUI eventloops")
223kernel.eventloop=loopRuntimeError: CannotactivatemultipleGUIeventloops
But If I start through the command "ipython notebook --pylab=inline", A cell with "%pylab inline" works just fine but "%pylab qt" throws the below error.
I am on IPython 0.13.2 in Windows XP (32 bit)
If I start through the command "ipython notebook", A cell with "%pylab inline" throws the below error.
But If I start through the command "ipython notebook --pylab=inline", A cell with "%pylab inline" works just fine but "%pylab qt" throws the below error.
Basically I could not change the matplotlib backend dynamically.
The text was updated successfully, but these errors were encountered: