Allow output prompt to leave out numbers for qtconsole

This is motivated by this Spyder issue:

https://code.google.com/p/spyderlib/issues/detail?id=1923
We'd probably stick it in utils if it existed, but I don't think it does.