Setting Up a Python Virtual Environment with Hydrogen in Atom Setting Up a Python Virtual Environment with Hydrogen in Atom python-3.x python-3.x

Setting Up a Python Virtual Environment with Hydrogen in Atom


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 envsource env/bin/activate# make sure requirements.txt has ipykernel in itpip3 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!