You can use any Python environment you like for this class, as long as you complete all the requirements of each assignment. Below are suggestions for two interactive notebook formats: Jupyter and Marimo.
Set Up Jupyter Lab¶
This page will help you make sure you are set up to use Python and Jupyter Lab on your own computer as well as in the classroom. You will use the Jupyter Notebook file getting_started.ipynb linked below.
Getting Set Up In The Classroom¶
Important Note: while we will be using the same software, Jupyter Lab, in both the classroom and on your own computer, you will start the applications in different ways depending on which system you are on. Specifically, in the classroom, you will use a Jupyter.bat file to launch the software. You SHOULD NOT put this file on your own computer. On your own computer, you will launch Anaconda and Jupyter Lab as you would any other application you have installed.
To use python in the classroom, we will use the Anaconda package already installed on these computers:
Create a folder in your share space (that is, your H: drive) with a name like “python” or “CIS397”.
Download and save the getting_started.ipynb file linked above to that folder
Download the Jupyter.txt file linked here and save it to the desktop
Rename the
Jupyter.txtfile toJupyter.bat(There may be additional numbers and letters in the filename: you can remove those.)Double click the
Jupyter.baticon to launch Jupyter LabIn the interface that appears, navigate to the folder you created with the
getting_started.ipynbfile in itClick on the
getting_started.ipynbfile to open it; you should see a collection of Python code and markdown comments, broken up between a number of boxes/cellsFollow the instructions in the file to run the code and review the output
Getting Set Up On Your Own Computer¶
To use python on your own computer, you will install Anaconda, available at https://
Download the Individual Edition installer for your system
Run the installer using the default/recommended options
Download the
getting_started.ipynbfile linked above, keeping track of where you have saved it on your computerLaunch the Jupyter Lab application; this may be inside an Anaconda3 folder or an Anaconda Navigator application
In the interface that appears, navigate through the directories/folders on your computer to the space where you have saved the getting_started.ipynb file.
Click on the getting_started.ipynb file to open it; you should see a collection of Python code and markdown comments, broken up between a number of boxes/cells
Follow the instructions in the file to run the code and review the output
Set Up Marimo¶
Marimo is a newer type of interactive Python notebook
Getting Set Up In The Classroom¶
In a Powershell window, run
python.exe.This command should launch the Windows store, where you can download and install Python.
Once Python is installed, install Marimo in Powershell with
pip.exe install marimo. (You will need to use the same method to install other necessary libraries, such asnetworkxandpandas.)In Powershell navigate to your H-drive by running
cd H:\.Launch Marimo with the command
marimo edit.
Getting Set Up On Your Own Computer¶
Follow the Quickstart Guide on Marimo’s website. Once it’s installed, you will use the same command to launch Marimo on your own computer: marimo edit.