question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I never want to restart Spyder when the display dpi changes

See original GitHub issue

Description

What steps will reproduce the problem?

Spyder asks me when connecting or disconnecting my second monitor to restart because the dpi changed.

Both internal lapotp, as well as external are 1080p. The external one is connected via HDMI to a dock which connects via Thunderbolt to my laptop. The windows scaling setting for both monitors is 100%

No spyder setting (automatic, personal or fixed dpi) seem to prevent this dialog and it is very annoying. It also appears when awaking my pc from sleep.

A soulution could be “hide this dialog for ever” instead of hide this dialog for the current sesseion

Versions

  • Spyder version: 4.1.3
  • Python version: 3.7.7
  • Qt version: 5.9.6
  • PyQt5 version: 5.9.2
  • Operating System: Windows 10

Dependencies


# Mandatory:
atomicwrites >=1.2.0           :  1.4.0 (OK)
chardet >=2.0.0                :  3.0.4 (OK)
cloudpickle >=0.5.0            :  1.4.1 (OK)
diff_match_patch >=20181111    :  20181111 (OK)
intervaltree                   :  None (OK)
IPython >=4.0                  :  7.13.0 (OK)
jedi =0.15.2                   :  0.15.2 (OK)
nbconvert >=4.0                :  5.6.1 (OK)
numpydoc >=0.6.0               :  0.9.2 (OK)
paramiko >=2.4.0               :  2.7.1 (OK)
parso =0.5.2                   :  0.5.2 (OK)
pexpect >=4.4.0                :  4.8.0 (OK)
pickleshare >=0.4              :  0.7.5 (OK)
psutil >=5.3                   :  5.7.0 (OK)
pygments >=2.0                 :  2.6.1 (OK)
pylint >=0.25                  :  2.5.0 (OK)
pyls >=0.31.9;<0.32.0          :  0.31.10 (OK)
qdarkstyle >=2.8               :  2.8.1 (OK)
qtawesome >=0.5.7              :  0.7.0 (OK)
qtconsole >=4.6.0              :  4.7.3 (OK)
qtpy >=1.5.0                   :  1.9.0 (OK)
rtree >=0.8.3                  :  0.9.4 (OK)
sphinx >=0.6.6                 :  3.0.3 (OK)
spyder_kernels >=1.9.1;<1.10.0 :  1.9.1 (OK)
watchdog                       :  None (OK)
zmq >=17                       :  18.1.1 (OK)

# Optional:
cython >=0.21                  :  None (OK)
matplotlib >=2.0.0             :  3.1.3 (OK)
numpy >=1.7                    :  1.18.1 (OK)
pandas >=0.13.1                :  1.0.3 (OK)
scipy >=0.17.0                 :  1.4.1 (OK)
sympy >=0.7.3                  :  None (OK)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
ccordoba12commented, May 20, 2020

I’m not sure, so we need to check. Maybe we can check what the signal is retrieving and add a more in specific validation to trigger the dialog only on resolution/scale change and not in number of screens change.

Ok, please work on that for 4.1.4. If you find that’s really not possible (or too hard to do), then please implement your proposed improvement to the message dialog we’re showing at the moment.

1reaction
dalthvizcommented, May 20, 2020

I really like this suggestion!

👍

Does Qt really have a correct way to detect this? (I thought it doesn’t).

I’m not sure, so we need to check. Maybe we can check what the signal is retrieving and add a more in specific validation to trigger the dialog only on resolution/scale change and not in number of screens change.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do you reset Spyder's GUI to default scaling?
My Spyder IDE had its buttons resized and I cannot change the layout back ... resetting by terminal and changing to high auto...
Read more >
How To: Fix Spyder gui terrible scaling with high dpi monitor ...
1) Locate the qt.conf file · 2) Modify the qt.conf file · 3) Restart Spyder.
Read more >
spyder-ide/public - Gitter
Hi, Whenever I run Spyder on my Mac and switch between different windows, a box with the warning "A monitor scale change was...
Read more >
Spyder X20 - Christie Digital
Spyder X20 User Manual. 15. 020-000916-01 Rev. 1 (04-2016) resolution is considerably larger than a single output device such as a monitor or...
Read more >
How to Change DPI Display Scaling in Windows 11 - Winaero
If you want to restore default changes, use a prebuilt registry file. It will let you reset custom scaling in Windows 11 with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found