LoginSignup
0
1

More than 3 years have passed since last update.

Jupyter Notebook で別の Kernel が立ち上がってしまう時は kernel.json 内のパスを書き換える

Posted at

Jupyter Notebook で Kernel error (FileNotFoundError)

Pyenv等を用いることによってPython3の環境が複数ある場合、Jupyter Notebook を立ち上げたときに、他の(すでにアンインストールした)Kernelを参照しようとして Kernel error になるときがある。

そのような場合、

~/Library/Jupyter/kernels/python3/kernel.json 内のパスを書き換えると解決する。

{
 "argv": [
  "/path/to/kernel",  # ここを書き換える
  "-m",
  "ipykernel_launcher",
  "-f",
  "{connection_file}"
 ],
 "display_name": "Python 3",
 "language": "python"
}
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1