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.

Have Spyder offer to install spyder-kernels in virtual environments

See original GitHub issue

What steps will reproduce the problem?

When a user does not have the appropriate version of spyder-kernels installed, the IPython console fails to start with the following message:

Your Python environment or installation doesn't have the spyder‑kernels module or the right version of it installed (>= 2.1.0 and < 2.2.0). Without this module is not possible for Spyder to create a console for you.

You can install it by running in a system terminal:

conda install spyder‑kernels=2.1

or

pip install spyder‑kernels==2.1.*

It would be convenient if Spyder provided a dialog window offering to install the appropriate version of spyder-kernels (and possibly pyqt) for the user.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:22 (22 by maintainers)

github_iconTop GitHub Comments

2reactions
CAM-Gerlachcommented, Sep 26, 2021

FWIW, @ccordoba12 basically said everything I wanted to say, but more clearly and eloquently and in half the words, heh.

@mrclary Thanks for understanding, and even better for offering to pitch in on the package management support—I’m sure that would be a huge help in finally implementing a feature we’ve always wanted to add but hadn’t yet been able to fully scrape together all the dev time for given the other priorities that kept coming up.

Sidenote @ccordoba12 —why did @spyder-bot re-open the issue?

2reactions
mrclarycommented, Sep 25, 2021

@ccordoba12 @CAM-Gerlach, thank you both for your patience and willingness to discuss this issue. I now agree that providing this small functionality will open a pandora’s box before we’re ready to provide the superior solution. I do think that Spyder’s own environment and package manager will be a welcome and worthwhile feature and I look forward to contributing to its development.

Read more comments on GitHub >

github_iconTop Results From Across the Web

virtualenv IPython in Spyder not working - Stack Overflow
3 Answers 3 · activate the environment where you want to work (ex : source env/bin/activate ) · install the kernel in the...
Read more >
Frequently Asked Questions — Spyder 5 documentation
The easiest way to install Spyder is with the Anaconda Python distribution, which comes with everything you need to get started in an...
Read more >
5 Steps : Setup Python Virtual environment in Spyder IDE
I have setup python 3 environment on my machine. For python 3, Let us install the virtualenv package with pip command as below....
Read more >
Missing spyder‑kernels -- reinstalling to no avail · Issue #12709
Your Python environment or installation doesn't have the spyder‑kernels module or the right version of it installed (>= 1.9.1 and < 1.10.0).
Read more >
spyder-kernels - PyPI
Package that provides Jupyter kernels for use with the consoles of Spyder, the Scientific Python Development Environment. These kernels can launched either ...
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