Skip to content

Instantly share code, notes, and snippets.

@181192
Created July 24, 2018 16:56
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save 181192/02fae14e39c0231965a1669a5ea1a75b to your computer and use it in GitHub Desktop.
Scaling Anaconda-Navigator applications in Ubuntu

Scaling Anaconda-Navigator applications in Ubuntu

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment