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.

Spyder opens new instances when double-clicking Python scripts

See original GitHub issue

Problem Description

I recently upgraded Spyder to 3.2.8 from 3.2.4. I bind Spyder with any .py files on my Windows 10 computer, i.e., on the right-click menu of a certain .py file, under “open with”, I choose “choose another app”, and choose “C:\Anaconda3\Scripts\spyder.exe” to open .py files (and I check “Always use this app to open .py files” option).

After upgrading to 3.2.8, I found that every time I double-clicked a .py file, a new instance of Spyder opens up, with an empty cmd window pointing to “C:\Anaconda3\Scripts\spyder.exe” also open.

This was not the case for my previous versions of Spyder.

What steps will reproduce the problem?

The steps are described above.

What is the expected output? What do you see instead?

If a Spyder instance is already open, then double-clicking other .py files does not open new Spyder instances. Instead, the .py files should be opened in the current Spyder instance.

Paste Traceback/Error Below (if applicable)

N/A

Package Versions

  • Spyder: 3.2.8
  • Python: 3.6.3
  • Qt: 5.6.2
  • PyQt: 5.6.0
  • Operating System: Windows 10

Dependencies

N/A

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jakubnyccommented, Jun 7, 2018

@dalthviz If there is a new version of Spyder, I will try it out and see if the problem has been solved. The latest version I see is 3.2.8 which was not working. I will download 3.2.9 when it is ready and give feedback.

1reaction
jakubnyccommented, Apr 19, 2018

I can confirm that I have repeatedly had troubles with new instances appearing with a number of the recent 3.2* versions. I regularly upgrade Spyder. I update via Anaconda.
Current version with the problem is 3.2.8 Python 3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:32:41) [MSC v.1900 64 bit (AMD64)] Windows 10 Ipython 6.3.0

I did not have the problem with 3.2.6. I just downgraded to that version and the new instance problem is gone via conda install spyder=3.2.6.

The downgrade to 3.2.7 did not work to solve things. Hence you may want to look at the diff between 3.2.6 and later versions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I run two separate instances of Spyder - Stack Overflow
in Spyder 4, click the "Advanced Settings" tab, and deactivate the option ... Then every time you start Spyder a new window will...
Read more >
How to write a Python script that runs on double click, opens a ...
On Windows its very easy to run on double click: 1- Just Right Click the script file and go to properties. 2- Select...
Read more >
How to Schedule Python Script using Windows Scheduler
Open the Windows Control Panel and then click on the Administrative Tools; Double-click on the Task Scheduler, and then choose the option to...
Read more >
4.5 Automation with batch files and scheduled tasks | GEOG 485
Double -clicking a .py file gives your operating system the simple command to run that Python script. You can alternatively tell your operating...
Read more >
IPython Console — Spyder 5 documentation
To launch a new IPython instance, go to New console (default settings) under ... console tab with the Rename tab option, or by...
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