Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Hydrogen with Python 3

The default version of python installed on my mac is python 2. I also have python 3 installed but can't install python 2.

I'd like to configure Hyrdrogen on Atom to run my script using python 3 instead.

Does anybody know how to do this?

like image 528
ExpertShaun Avatar asked Dec 01 '25 06:12

ExpertShaun


1 Answers

Try running jupyter kernelspec list --json to view the current kernels installed on your machine. The python3 kernelspec argv key should have a valid path to your Python 3 executable. If it does not, you need to modify your kernel to point to the correct executable.

Instead of manually editing the kernelspec, I'd recommend reinstalling the kernel using one of the commands described here, depending on whether you use conda, virtualenv, or no virtual environment.

Also, make sure to start atom from a terminal using atom ., as they recommend in the atom docs, to ensure that atom has the same environment as your terminal.

like image 181
Ben Russert Avatar answered Dec 04 '25 00:12

Ben Russert



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!