ipykernel restarts with "Restarting kernel..." message
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
調査の方向性
まず、qtconsole と Jupyter Notebook で最小限の再帰例を実行し、その後、通常の Python セッションおよび報告された RecursionError と動作を比較します。カーネルの障害経路を追跡し、コンソールを再起動したりノートブックをクラッシュさせたりすることなく、再帰によって明確なエラーメッセージが生成されることを確認します。
索引モデルが issue の本文から書いたものです。
説明
The following minimal example results in the qtconsole restarting
import numpy as np
remaining_parameters=[]
cost_function_first = lambda x: cost_function_first(np.append(x, remaining_parameters))
cost_function_first([0.])
with error message
Kernel died, restarting
The same happens within a Spyder console
The minimal example has a clear problem: an infinite recursion. But in a normal python session this results in a normal exception with clear error message, e.g.
...
File "C:\develop\env-py39\lib\site-packages\numpy\core\fromnumeric.py", line 1819, in ravel
if isinstance(a, np.matrix):
RecursionError: maximum recursion depth exceeded while calling a Python object
Within qtconsole at least a clear error message should be generated. And preferably the console not restarted.
Within jupyter notebook executing the minimal example also results in a crash without proper error messages.
- 主要言語
- Python
- スター
- 734
- フォーク
- 411
- 平均マージ
- 1日 2時間
- マージ済み PR(30日)
- 9
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ipython/ipykernel のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 68/100
ipython/ipykernel の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
learningequality/ricecooker#747 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
run-llama/llama_index#23199 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
KhronosGroup/glTF-Blender-IO#2769 ·