I\'m in the middle of switching from VS Code to Atom and I\'m trying to set up a virtual environment for my python project.
It was pretty easy to do in VS Code, I\'d ru
Ok, after some more experimentation, I was able to connect to a kernel that I had installed my requirements.txt into.
Here are the steps I took:
python3 -m venv env
source env/bin/activate
# make sure requirements.txt has ipykernel in it
pip3 install -r requirements.txt
python -m ipykernel install --user --name=env
Then in Atom, press cmd-shift-p
and find Hydrogen: Update Kernels
.
After, I was able to use the kernel by doing cmd-shift-p
again and selecting Hydrogen: Start Local Kernel
and selecting env
.
When I would run import statements via Hydrogen (selecting them and pressing cmd-enter
), they would now know what to import! Horray!