-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Description
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(orpip, 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?
- Go to the console
- Go to "New console in environment"
- Select an environment that doesn't have
spyder-kernelsinstalled
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)