I had the same problem on Windows10 with spyder version 5.1.5. To resolve the problem you need a version newer than 5.1.5. The thing is that if you update Spyder you have to install it from a channel other than the defaults
channel in order to get a newer version than 5.1.5. This can be done in two ways:
Console
Open the console or, if you're working on Windows, the Anaconda Prompt, and type the following commands in order to first uninstall spyder, and then re-install the newest version (just updating didn't work for me).
conda remove -n myenv spyder
conda install -n myenv -c conda-forge spyder
- The first command, remove, uninstalls spyder in the virtualenv called 'myenv'. If you don't use virtualenvs, just leave the
-n myenv
aside.
- The second command, install installs spyder from the third-party channel
conda-forge
instead of the official channel defaults
. This option is necessary in order to install a spyder version newer than 5.1.5
Anaconda Navigator
- Uninstall Spyder: In the "Home" tab, select the correct virtual environment in the "Applications on" dropdown menu. Then click on the gear symbol in the upper right corner of the spyder tile and select "remove application".
- Add
conda-forge
to your environment's channels: This is nicely described at the bottom of this page.
- Install spyder again, in the way you did it the first time.
- Click again on the gear on the spyder tile, choose "install specific version" in order to update to the newest version. Now, versions newer than 5.1.5 should be available.