Skip to content

Instantly share code, notes, and snippets.

@clarencecastillo
Last active March 16, 2020 01:48
Show Gist options
  • Save clarencecastillo/7d093af50aa97ea2a26590e76a59d5f2 to your computer and use it in GitHub Desktop.
Save clarencecastillo/7d093af50aa97ea2a26590e76a59d5f2 to your computer and use it in GitHub Desktop.
Tertiary Courses Python 3 Essentials Setup

Setup Instructions:

1. Install Atom

  • 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.

2. Install Hydrogen

  • Open Atom and go to Settings. For Windows users, click File > Settings. For MacOS users, click Atom > 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.

3. Install Python 3.7.x

  • 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 just python to refer to Python 3.x.
  • If you get a different error, follow the steps in step 6.

4. Add Python 3 to PATH

  • 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 or python3 --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 of python to refer to Python 3.x.

5. Install IPython Kernel

  • 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.

6. Verify Installation

  • 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) as test.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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment