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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With