Spyder-kernels provides the Jupyter kernels required for Spyder's console to run Python code. It enables Spyder to execute code in separate environments, ensuring isolation and flexibility for different projects. The current version is 3.1.4 and it typically releases new versions in sync with major Spyder IDE updates.
pip install spyder-kernelsNo compatibility data collected yet for this library.
To use spyder-kernels, simply install it in the Python environment you wish Spyder to interact with. Once installed, launch Spyder and select that environment as your console's interpreter (e.g., via `Tools > Preferences > Python interpreter`). Then, execute code directly in the IPython console.
Consult the official Spyder documentation for the correct `spyder-kernels` version range compatible with your Spyder IDE. For Spyder 5.x, you generally need `spyder-kernels>=2.0,<3.0`. For Spyder 6.x, you need `spyder-kernels>=3.0`.
Activate your target environment (e.g., `conda activate my_project_env` or `source .venv/bin/activate`) and then run `pip install spyder-kernels`. Afterwards, configure Spyder to use this environment as its Python interpreter.
Ensure `ipykernel` is up-to-date and compatible with your `spyder-kernels` version. A clean install within your environment (`pip install --upgrade ipykernel`) or ensuring `spyder-kernels` installs its recommended `ipykernel` dependency often resolves this.
Activate the desired Python environment and install `spyder-kernels`: `pip install spyder-kernels`. Then, ensure Spyder is configured to use this environment as its interpreter.
1. Verify `spyder-kernels` compatibility with your Spyder IDE version. 2. Ensure `ipykernel` is up-to-date in the target environment. 3. Try creating a fresh environment and installing only `spyder-kernels` and your project dependencies there.
In the problematic environment, run `pip install --upgrade spyder-kernels ipykernel`. If the issue persists, try clearing Spyder's application data (as per Spyder's documentation, usually `~/.spyder-py3` or similar), or use a fresh Python environment.
No dependency data recorded yet.