-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No kernel for grammar Python found Check that the language for this file is set in Atom and that you have a Jupyter kernel installed for it. #1074
Comments
This looks like a outdated version of Hydrogen and Atom. Which version are you running? |
Hi, I'm having the same issues on my windows machine. My Atom and and Hydrogen are both the most recent releases. Atom - 1.21.2 I updated both yesterday and have been getting this error since then. I re-installed Hydrogen and Ipykernel and still have the same issue. I see from past threads that there used to be a kernelspec setting where you could direct hydrogen to the kernel but that seems to have been removed. Any ideas how to resolve this issue? Thanks! |
Same here. |
Same issues on Windows machine |
[Problem Solved] For me the issue was solved when I added anaconda3 and anaconda3/Scripts to the PATH variable. Hope this helps others as well! |
Running python -m pip install ipykernel
python -m ipykernel install --user should fix the problem. Please try the latest version of hydrogen. |
@lgeiger Thanks! I've tried everything and it looks like YOUR solution worked for me! I appreciate that. |
restarting atom worked for me |
This doesnt work on Mac. When I execute the second command I get:
|
same problem occurs for Mac OSX Mojave as above. |
Can you check the kernel you want to run is listed in: This gonna be like:
And if each JSON file contains
|
Hi, thank you for your reply, here is my result. bash-3.2$ jupyter kernelspec list
Available kernels:
julia-1.1 /Users/terasakisatoshi/Library/Jupyter/kernels/julia-1.1
python3 /Users/terasakisatoshi/.pyenv/versions/3.6.8/share/jupyter/kernels/python3
bash-3.2$ pyenv which python
/Users/terasakisatoshi/.pyenv/versions/3.6.8/bin/python
bash-3.2$ which jupyter
/Users/terasakisatoshi/.pyenv/shims/jupyter
bash-3.2$ cat ~/.pyenv/versions/3.6.8/share/jupyter/kernels/python3/kernel.json
{
"argv": [
"python",
"-m",
"ipykernel_launcher",
"-f",
"{connection_file}"
],
"display_name": "Python 3",
"language": "python" |
Sorry Essentially, we search local kernels by spawning: If the command doesn't show directories containing your Python kernels, activating the pyenv first or setting environment variable described here before starting up Atom might help you. |
@BenRussert @lgeiger |
Here is my result of $ jupyter --paths
config:
/Users/terasakisatoshi/.jupyter
/Users/terasakisatoshi/.pyenv/versions/3.6.8/etc/jupyter
/usr/local/etc/jupyter
/etc/jupyter
data:
/Users/terasakisatoshi/Library/Jupyter
/Users/terasakisatoshi/.pyenv/versions/3.6.8/share/jupyter
/usr/local/share/jupyter
/usr/share/jupyter
runtime:
/Users/terasakisatoshi/Library/Jupyter/runtime I think Hydrogen is trying to read |
If you install python under an anaconda virtual environment and meet the same error on Mac OS, first make sure you have installed python kernel using
then all you need to do is create a directory |
Another way to make Hydrogen work is to launch Atom in a terminal which has load your anaconda environment if you have set atom in your system PATH, i.e., |
@zhenkunl I'm using Python 3.6.8 which is managed by pyenv.
which may correspond to your hooray |
@terasakisatoshi I am very happy to hear it works. That's cool. |
@zhenkunl Yeah. Thank you so much! |
@zhenkunl |
That helped... thanks!! |
Hello, I am currently struggeling with the same issue and although I have the kernels/python3 folder in my jupyter data path as suggested by @zhenkunl, which is: |
This was my issue too! I created a symbolic link instead of copying. |
dear professor
as you can see, when i try to run 'print 123', it showed me this, and before this, i run 'pip install ipykernel ' in the windows cmd, it told me that 'Successfully installed backports-abc-0.5 backports.shutil-get-terminal-size-1.0.0 certifi-2017.7.27.1 colorama-0.3.9 decorator-4.1.2 enum34-1.1.6 ipykernel-4.6.1 ipython-5.5.0 ipython-genutils-0.2.0 jupyter-client-5.1.0 jupyter-core-4.4.0 pathlib2-2.3.0 pickleshare-0.7.4 prompt-toolkit-1.0.15 pygments-2.2.0 python-dateutil-2.6.1 pyzmq-16.0.3 scandir-1.6 simplegeneric-0.8.1 singledispatch-3.4.0.3 tornado-4.5.2 traitlets-4.3.2 wcwidth-0.1.7 win-unicode-console-0.5'.
so what I should I do to solve this problem(win10 platform), thanks a lot for all.
The text was updated successfully, but these errors were encountered: