Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: option to auto-install spyder-kernels #22855

Open
5 of 10 tasks
cliffckerr opened this issue Nov 5, 2024 · 0 comments
Open
5 of 10 tasks

Suggestion: option to auto-install spyder-kernels #22855

cliffckerr opened this issue Nov 5, 2024 · 0 comments

Comments

@cliffckerr
Copy link

Issue Report Checklist

  • Searched the issues page for similar reports
  • Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
  • Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
  • Could not reproduce inside jupyter qtconsole (if console-related)
  • Tried basic troubleshooting (if a bug/error)
    • Restarted Spyder
    • Reset preferences with spyder --reset
    • Reinstalled the latest version of Anaconda
    • Tried the other applicable steps from the Troubleshooting Guide
  • Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description

First, I absolutely love Spyder 6, well done! One of my biggest issues with Spyder 5 was that it was such a pain to switch between environments. Now that it's so much easier, I have a suggestion for how to make it easier still.

Currently, when you open an environment that doesn't have spyder-kernels installed, it will say "An error occurred while starting the kernel" with instructions for what to do. But it would be nice if there were instead a dialog box that said "Would you like to install spyder-kernels into this environment?", do it, and then start the console.

What steps reproduce the problem?

  1. Go to the console
  2. Go to "New console in environment"
  3. Select an environment that doesn't have spyder-kernels installed

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

I would want an option to automatically install spyder-kernels into the selected environment.

Paste Traceback/Error Below (if applicable)

An error occurred while starting the kernel
The Python environment or installation whose interpreter is located at
    /home/user/anaconda3/envs/myenv/bin/python
doesn't have spyder‑kernels version >=3.0.0,<3.1.0 installed. Without this module and specific version is not possible for Spyder to create a console for you.

You can install it by activating your environment (if necessary) and then running in a system terminal:
    conda install spyder-kernels=3.0
or
    pip install spyder-kernels==3.0.*

Versions

  • Spyder version: 6.0.1
  • Python version: 3.12
  • Operating System name/version: Linux 6.8.0-48-generic (x86_64)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant