- Download the latest version corresponding to your operating system from https://atom.io/.
- Follow the on-screen instructions on the wizard to proceed with the installation.
- Open Atom and go to Settings. For Windows users, click
File > Settings
. For MacOS users, clickAtom > Preferences
. - From the Settings page, click on Install and look for the package Hydrogen by nteract. You can search for
Hydrogen
at the search bar or just look for it in the list of featured packages.
- You can skip this step if you already have Python 3.7.x or below installed.
- Download the latest Python 3 installer corresponding to your operating system from https://www.python.org/.
- Follow the on-screen instructions on the wizard to proceed with the installation. IMPORTANT: For Windows users, make sure you tick Add Python 3.x to PATH during the installation.
- Open your Command Prompt (or Terminal for MacOS users) and type
python --version
. - You should see the corresponding Python 3.x version.
- If you see Python 2.x instead, you must use the command
python3
instead of justpython
to refer to Python 3.x. - If you get a different error, follow the steps in step 6.
- This step is only for Windows users. In addition, you can skip this step if you can already see Python3.x when running
python --version
orpython3 --version
as described in step 5. - Download the latest Python 3 installer corresponding to the version installed in your computer.
- Open the installer and select Modify. Proceed to the Advanced Options by clicking Next. From the Advanced Options page, tick Add Python to environment variables.
- Finish the intsallation by clicking Install.
- Verify that Python 3 is in your PATH by opening your Command Prompt and type
python --version
. - You should see the corresponding Python 3.x version.
- If you see Python 2.x instead, you must use the command
python3
instead ofpython
to refer to Python 3.x.
- From your Command Prompt (or Terminal for MacOS users) run
python -m pip install ipykernel
. - If you have both Python 2 and 3 installed, you may need to run
python3 -m pip install ipykernel
instead. - Next, run
python -m ipykernel install --user
. - Again, if you have both Python 2 and 3 installed, run
python3 -m ipykernel install --user
instead.
- If you already have Atom opened prior to this step, close and reopen it.
- From Atom and create a new file by clicking
File > New File
. - Save the file (
File > Save
) astest.py
. IMPORTANT: Make sure you include.py
as the file name extension. - In the new file, type
print("Hello World")
. - While placing your cursor in the line you just typed, press
Ctrl + Enter
(CMD + Enter
for MacOS users). - Verify Hydrogen running by seeing
"hello world"
next to this line.