How to resolve "No kernel of grammar Python found" error in Atom

Introduction

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.

Solution

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.

Finally

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

How to resolve "No kernel of grammar Python found" error in Atom
Summary of how to import files in Python 3
Summary of how to use MNIST in Python
How to get the number of digits in Python
How to develop in Python
What to do if you get `No kernel for language python found` in Hydrogen
How to develop in a virtual environment of Python [Memo]
Comparison of how to use higher-order functions in Python 2 and 3
How to get a list of built-in exceptions in python
[Python] How to do PCA in Python
How to collect images in Python
How to use SQLite in Python
How to use Mysql in python
How to wrap C in Python
How to use ChemSpider in Python
How to use PubChem in Python
How to handle Japanese in Python
How to deal with python installation error in pyenv (BUILD FAILED)
How to determine the existence of a selenium element in Python
How to resolve ModuleNotFoundError: No module named XXX in Jupyter Notebook
How to know the internal structure of an object in Python
How to check the memory size of a variable in Python
Basic grammar of Python3 system (how to use functions, closures, lambda functions)
How to check the memory size of a dictionary in Python
[Python] Summary of how to use pandas
[Introduction to Python] How to use class in Python?
How to suppress display error in matplotlib
How to access environment variables in Python
How to dynamically define variables in Python
How to do R chartr () in Python
[Itertools.permutations] How to put permutations in Python
How to work with BigQuery in Python
How to get a stacktrace in python
How to display multiplication table in python
How to extract polygon area in Python
How to check opencv version in python
[Python2.7] Summary of how to use unittest
How to switch python versions in cloud9
How to adjust image contrast in Python
How to use __slots__ in Python class
How to dynamically zero pad in Python
Summary of how to use Python list
How to use regular expressions in Python
[Python2.7] Summary of how to use subprocess
How to display Hello world in python
How to use is and == in Python
How to write Ruby to_s in Python
Import Error in Python3: No module named'xxxxx'
[Question] How to use plot_surface of python
How to send a visualization image of data created in Python to Typetalk
[Python] How to put any number of standard inputs in a list
How to deal with SSL error when connecting to S3 with boto of Python
What to do if No Python documentation found for ... appears in pydoc
How to format a list of dictionaries (or instances) well in Python
How to pass the execution result of a shell command in a list in Python
How to use the C library in Python
What to do if you get a "No versions found" error in pipenv
How to receive command line arguments in Python
[Python] How to use two types of type ()
[REAPER] How to play with Reascript in Python
How to clear tuples in a list (Python)