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.

Update Working with packages and environments in Spyder?

See original GitHub issue

Hi and thanks for your great work, it is much appreciated 😃

I’ve been using Spyder for a while and like the approach of having just one Spyder instance installed in its dedicated conda environment (that I simply call spyder), it makes maintaining/updating Spyder easier if it’s just there on its own and not put together with 200 other packages. If I wanna connect Spyder to an other environment, I install spyder-kernels in that environment and change the Interpreter in the settings to point to the python executable of that environment. That works fine (most of the time!) and this way I have just one Spyder version installed, not in each environment (which would be a pain to maintain).

I got this trick from your wiki, here exactly. The page is a little old though, 09/2018, and maybe it needs to be updated? For instance, it suggests to run conda install spyder-kernels=0.*, which pins spyder-kernels to older (spyder 3.X?) versions.

I also wonder if my approach is still the right way? If so, I believe it should be better documented and probably added to the official docs, as it’s kind of hidden now unfortunately.

In the long run, I hope your team will have enough funding to get closer to the experience provided by vscode, i.e. a super smooth way to activate any environment from the GUI.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
CAM-Gerlachcommented, May 9, 2020

@ccordoba12 @maximlt Done, just added a few commas, tweaked syntax a few places, cleaned up a few stray spaces/line breaks, and made one content-relevant change: added the manual venv activation script since workon isn’t always available everywhere. Thanks so much for your help!

I support adding this to the docs; I believe we initially wanted to but for whatever reason we didn’t. I’d be happy to submit a PR to get that done when the time is right; it also reflects a lot of what we tell people in our Pip vs. Conda video that we’re working on right now…maybe as material to accompany that? Or we can do it separately or later.

1reaction
CAM-Gerlachcommented, May 9, 2020

@ccordoba12 Sure, in work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Frequently Asked Questions — Spyder 5 documentation
To work with an existing environment in Spyder, you need to change Spyder's default Python interpreter. To do so, click the name of...
Read more >
Working with packages and environments in Spyder - GitHub
The most common problem: Using newly-installed packages inside Spyder · Activate the environment in which Spyder is installed and install your package on...
Read more >
Easy Way to switch Environments in Spyder? - Google Groups
You can change the environment in which Spyder runs by re-launching from another environment. I am not a regular anaconda user, but I...
Read more >
How to run Spyder in virtual environment? - Stack Overflow
To use Spyder with another environment, the simplest way is to just install it directly into the environment from which you'd like to...
Read more >
Using Conda Python Environments with Spyder IDE and ...
Creating new environment with pip. This step has lot of help everywhere, just to refresh up. Use Anaconda Prompt for the following steps:...
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