Show More
@@ -297,16 +297,9 b' class TerminalIPythonApp(BaseIPythonApplication, InteractiveShellApp):' | |||
|
297 | 297 | # warn and transform into current syntax |
|
298 | 298 | argv = argv[:] # copy, don't clobber |
|
299 | 299 | idx = argv.index('-pylab') |
|
300 |
warn.warn("`-pylab` |
|
|
301 |
" Use `--matplotlib |
|
|
302 |
|
|
|
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 | |
|
300 | warn.warn("`-pylab` flag has been deprecated.\n" | |
|
301 | " Use `--matplotlib <backend>` and import pylab manually.") | |
|
302 | argv[idx] = '--pylab' | |
|
310 | 303 | |
|
311 | 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