Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

ipykernel restarts with "Restarting kernel..." message

オープン
#776 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
jupyter-notebook, numpy, python
領域
devtools

調査の方向性

まず、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

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

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

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ipython/ipykernel のほかの issue

ipython/ipykernel の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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