flathub / flathub/com.visualstudio.code

Jupyter notebook does not detect Python kernel when run

オープン
#358 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Shell
スター
217
フォーク
82
平均マージ
1日 7時間
マージ済み PR(30日)
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)

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

報告された Python 3.10.6 カーネルを使用し、Flatpak VS Code 環境で notebook を実行して失敗を再現します。その後、Python 拡張機能と Jupyter 拡張機能がカーネルをどのように検出して検証するかを調査します。インストールされた環境で ipykernel エラーなしに notebook のセルを実行でき、この構成に対する回帰チェックがあれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
jupyter, python, vscode
領域
devtools
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。