Update Spyder to 2.3.1

Closes #6444.