Skip to content

About

Python environment for UND ATSC courses.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

atsc_logo

Python Environment for UND ATSC courses

Overview

This repository contains installation instructions, scripts, and environments to set up Python on personal computers to complete coding assignments in UND ATSC courses.


Prerequisite Installations

Before setting up the Python environment, two installations are required:

  1. Python (version 3.11)
  2. JupyterLab

Python Installation

Windows

Open the Command Prompt, and type: python --version or py --version

If the output shows Python 3.11.x for one of the commands typed above, move on to the JupyterLab installation, otherwise, follow the steps below to install Python 3.11.

Install Python 3.11 for Windows by downloading the Windows installer (64-bit) under Python 3.11.9.

After the install is complete, type python --version or py --version in the Command Prompt to verify installation.

Mac

Open a Terminal, and type: python3.11 --version

If the output shows Python 3.11.x, move on to the JupyterLab installation, otherwise, follow the steps below to install Python 3.11.

Install Python 3.11 for Mac by downloading the macOS 64-bit universal2 install under Python 3.11.9.

After the install is complete, type python3.11 --version in a Terminal to verify installation.


JupyterLab Installation

Windows: Open the Command Prompt, and type: pip install jupyterlab or py -m pip install jupyterlab

Mac: Open a Terminal, and type: python3.11 -m pip install jupyterlab


Creating the UND ATSC Python Environment

Windows

Open the Command Prompt, and use the cd command to change directories to a location where you would like to keep the Python environment. If you prefer to simply create the environment under \Users\your_username on your computer, skip to the next step.

In the Command Prompt, type: git clone https://github.com/jordanichristian/und-atsc-python.git

In the above command doesn't work, download and install Git for Windows. Keep all of the default selected options during the install. After installation is complete, close the Command Prompt, open a new Command Prompt, and try the git clone command again in the Command Prompt.

Type: cd und-atsc-python

Then, run the script create_python_env_windows.bat by typing: create_python_env_windows.bat

If successful, you should see the output:
"ATSC Python environment setup complete!"

Mac

Open a Terminal, and use the cd command to change directories to a location where you would like to keep the Python environment. If you prefer to simply create the environment under /Users/your_username on your computer, skip to the next step.

In the Terminal, type: git clone https://github.com/jordanichristian/und-atsc-python.git

Type: cd und-atsc-python

Then, run the script create_python_env_mac_linux.sh by typing: ./create_python_env_mac_linux.sh

If the script doesn't run, try typing: chmod u+x create_python_env_mac_linux.sh then try running the script again.

If successful, you should see the output:
"ATSC Python environment setup complete!"


Running JupyterLab

After Python 3.11 and JupyterLab have been installed and the UND ATSC Python environment is set up, type the following commands (depending on operating system):

Windows: open a Command Prompt and type jupyter lab or py -m jupyterlab.

Mac: open a Terminal and type jupyter lab.

This will open a browser tab that will allow you to work with Jupyter notebooks (.ipynb files). To set the Python environment after opening a Jupyter notebook, click the Python 3 (ipykernel) in the top left, and change it to und_atsc_kernel.

About

Python environment for UND ATSC courses.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages