'override to allow old \'-pylab\' flag with deprecation warning'

def parse_command_line(self, argv=None):

    argv = (sys.argv[1:] if (argv is None) else argv)
    if ('-pylab' in argv):
        argv = argv[:]
        idx = argv.index('-pylab')
        warnings.warn('`-pylab`    flag    has    been    deprecated.\n                Use    `--matplotlib    <backend>`    and    import    pylab    manually.')
        argv[idx] = '--pylab'
    return super(TerminalIPythonApp, self).parse_command_line(argv)
