It seems so be a bug in Spyder as described here 43.
Could this be the case here?
If so, could you try to set the options (current console instead of dedicated console)?
I’m not sure, if this bug was already fixed in the current Spyder release, but you could also try to update it.