##// END OF EJS Templates
cleanup pylab deprecation...
MinRK -
Show More
@@ -297,16 +297,9 b' class TerminalIPythonApp(BaseIPythonApplication, InteractiveShellApp):'
297 # warn and transform into current syntax
297 # warn and transform into current syntax
298 argv = argv[:] # copy, don't clobber
298 argv = argv[:] # copy, don't clobber
299 idx = argv.index('-pylab')
299 idx = argv.index('-pylab')
300 warn.warn("`-pylab` and `--pylab` flags have been deprecated.\n"
300 warn.warn("`-pylab` flag has been deprecated.\n"
301 " Use `--matplotlib=<backend>` and import pylab manually.")
301 " Use `--matplotlib <backend>` and import pylab manually.")
302 sub = '--pylab'
302 argv[idx] = '--pylab'
303 if len(argv) > idx+1:
304 # check for gui arg, as in '-pylab qt'
305 gui = argv[idx+1]
306 if gui in ('wx', 'qt', 'qt4', 'gtk', 'auto'):
307 sub = '--pylab='+gui
308 argv.pop(idx+1)
309 argv[idx] = sub
310
303
311 return super(TerminalIPythonApp, self).parse_command_line(argv)
304 return super(TerminalIPythonApp, self).parse_command_line(argv)
312
305
General Comments 0
You need to be logged in to leave comments. Login now