Skip to content

Instantly share code, notes, and snippets.

View AndreaPasqualini's full-sized avatar
🔥
This is fine

Andrea Pasqualini AndreaPasqualini

🔥
This is fine
View GitHub Profile
@AndreaPasqualini
AndreaPasqualini / pin-spyder-to-windows-taskbar.md
Last active November 29, 2021 14:37
Steps to manually fix a bug, where Spyder would not be pinned to the Windows taskbar

Pinning Spyder to the Windows Taskbar

If you install Spyder through Anaconda (or miniconda), its launcher in the Start Menu will behave correctly. However, if you pin it to the taskbar, it won't behave properly. Opening Spyder through that icon on the taskbar will open Spyder, but a new (duplicate) icon on the taskbar will appear. The expected behavior would instead be that the pinned icon represents the application window, and no duplicate icon appears.

To fix this bug, I have followed the instructions as per this comment on this GitHub Issue.

  1. Create a new text file in your preferred location, and call it spyder-taskbar.py with the following contents:
    from win32com.shell import shellcon
    from win32com.propsys import propsys, pscon