This is what to do if atom, Hydrogen, which worked normally until yesterday, gets a bright red error message saying No kernel of grammar Python found when you try to run it today.
jupyter kernelspec list --json
Display the kernl spec with the above command. You will get the following answers.
Output example
{
  "kernelspecs": {
    "python3": {
      "resource_dir": "/Users/taka/Library/Jupyter/kernels/python3",
      "spec": {
        "argv": [
          "/opt/anaconda3/bin/python",
          "-m",
          "ipykernel_launcher",
          "-f",
          "{connection_file}"
        ],
        "env": {},
        "display_name": "Python 3",
        "language": "python",
        "interrupt_mode": "signal",
        "metadata": {}
      }
    }
  }
}
Copy this and paste it into the Startup Code field under ** atom> Settings> packages> Hydrogen **.
This will resolve the error.
It seems that the problem was that the jupyter kernel could not be accessed correctly from atom. I think that it will be solved if you can access the kernel correctly with the above settings.
It's a personal impression, but atom often causes such errors. I wonder if it's better to immigrate to the unseen land vscode ...
Recommended Posts