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