flathub / flathub/com.visualstudio.code

Jupyter notebook does not detect Python kernel when run

未关闭
#358 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Shell
星标
217
派生
82
平均合并
1 天 7 小时
30 天内合并 PR
1

描述

Python files run just fine, but Python code in Jupyter notebooks does not run.

Error:
`Running cells with 'Python 3.10.6 64-bit' requires ipykernel package.
Run the following command to install 'ipykernel' into the Python environment.
Command: '/bin/python -m pip install ipykernel -U --user --force-reinstall'`

Both Python and Jupyter extensions are installed.

According to the VSCode documentation, these extensions should allow Jupyter notebooks to run on any installed Python kernel:
"Without the Python Extension installed the Jupyter Extension can pick up kernels installed into Jupyter registered locations and run them. But with the Python Extension installed new options are opened up for Python notebooks. Instead of being restricted to just registered Jupyter kernels any Python environment, meaning a Python interpreter and an associated location for Python packages, installed on the system can be used as a kernel to execute Python code in. The default kernel for Python is provided by the [IPyKernel package](https://ipython.org/). If you select an environment on the system that does not have IPyKernel installed and attempt to run the notebook you will be prompted to install IPyKernel. If it's installed, that environment can be used as a valid kernel for Jupyter notebooks in Visual Studio Code." (https://github.com/microsoft/vscode-jupyter/wiki/Jupyter-Kernels-and-the-Jupyter-Extension#python-extension-and-ipykernel)

贡献指南

这个仓库没有索引到贡献指南

调研方向

Reproduce the failure by running a notebook in the Flatpak VS Code environment with the reported Python 3.10.6 kernel, then inspect how the Python and Jupyter extensions discover and validate kernels. Done means the installed environment can run notebook cells without the ipykernel error, with a regression check for this setup.

由索引模型根据 Issue 内容生成。

评估

技术栈
jupyter, python, vscode
领域
devtools
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。