Anacoda-Navigator and Spyder is built on QT-framework. There are some issues dealing with 4K resolution, where High DPI setting is only scaling buttons and icons. Where the terminal and editor is not being scaled at all.
The solution for the problem is running with the QT_SCALE_FACTOR
environment variable and disable High DPI
option from the preference menu. You can experiment with the value, but I have found that with 4K resolution on 15" screen
QT_SCALE_FACTOR=2
is perfect.
With my setup I have a MSI GS63VR 7RF laptop, and at home I use to different monitors one 2K 31" and one 1080p 24" I connect it to. When I'm running with the monitors I don't have the 4K laptop screen on, and therefore don't need the scaling.
So for me to have a transparent solution I've ended up starting the Anaconda Navigator from the terminal with the environment variable.
QT_SCALE_FACTOR=2 anaconda-navigator
And when using the screen just starting it manually.
For those who use only 4K monitors you can add the QT_SCALE_FACTOR=2
in the ~/.bashrc
and it would be enable every time
you logon to the computer