-
Notifications
You must be signed in to change notification settings - Fork 335
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
Python 3 /usr/bin/python: No module named ipykernel_launcher #1824
Comments
That issue is from 2015 in which hydrogen and jupyter have changed a lot. Hydrogen has become a language agnostic frontend to jupyter kernels, and it has great success. However instead of using paths of our own, which would become a large maintenance cost, we simply just use jupyter paths. If your kernel is not properly installed to be used by jupyter, you won't be able to use it for hydrogen either. Unfortunately I can't really give you guidance except for to read the nteract docs for installing kernels. There are definitely ways to avoid setting your python path. |
While you can find the resources under the installation tab in our docs, which I recommend you read, here is how to install kernels https://nteract.io/kernels. If you have any further questions please feel free to ask them here. |
I referred precisely on that page and I used the global installation, this is the command in the history of my bash: to be sure I launched it again and it was run without any problem (obviously it has not updated anything since I installed it a few days ago): |
We don't control the executable or run python. We run your kernel. If it doesn't use the correct path thats your kernels responsibility. I think what you mean is how do you get ipykernel to run python 3.
This is untrue. Your kernel controls the executable path, and so therefore if you change your kernel to run correctly, hydrogen can run it from anywhere. You just have an improper ipykernel installation. See more below |
you may want to read all of #730 as it discusses the proper fixes. But in order to speed up the process, |
Ok, I came back to write you that a test with venv was successful, so this confirms my problem (because in virtual enviorment the executable "python" became connected to python3, but I don't want to use a virtual enviorment because I don't want to reinstall all the libraries I already use), however since you answered me I tried to follow the page of the issue you passed me and trying to execute some commands in this page the problem seems to have fixed. Now I want to test bit Atom + Hydrogen, I've tried a bit of everything and maybe it's a right time that I change editors. |
To add to this ticket, in case anyone in the future will find this useful, I found that For reference, my issue was (I think) that my jupyter was searching for the wrong python. I used
to
|
When I try to run hydrogen on atom I obtain this error:
The reason seems very simple to me, /usr/bin/python in my system is python2, but I have to use python3 which in my system is /usr/bin/python3.
if I try to import ipykernel from python2 obviously return me an error because I have installed this module only for python3, which is the version of python that I want to use.
The solutions in my opinion are 2, pointing /usr/bin/python to python3 (and directly I can not do it because I would break the system, I could use virtualenv but I do not want to do it), or make atom/hydrogen allow me to change version of python.
Sorry I searched far and wide, I found many people with similar problems but I could not find a solution for mine.
In the end I thought about writing to you although probably this setting comes from atom.
But even if so, wouldn't it be a good idea to allow you to set the python path in the hydrogen settings and avoid similar problems?
Here it seems that someone had done it, but that command doesn't exist in my palette at all:
#138
Atom : 1.41.0
Hydrogen :2.13.1
All installed today
The text was updated successfully, but these errors were encountered: