Skip to content

Latest commit

 

History

History
75 lines (52 loc) · 2.42 KB

File metadata and controls

75 lines (52 loc) · 2.42 KB

Replit Instructions

Replit is an online coding workspace that runs in a web browser. It can be useful for practicing short Python programs, but it is optional for this course.

When to Use Replit

Use Replit when:

  1. Your instructor recommends it for an activity.
  2. You want to practice small Python examples in a simple online editor.
  3. Binder or Colab is not working for you.
  4. You are comfortable creating a Replit account.

For most notebook work, start with Binder or Colab first.

Create a Replit Account

  1. Go to Replit.
  2. Create an account or sign in.
  3. Follow any prompts needed to reach your Replit home page.

An account is usually needed so Replit can save your work.

Option 1: Import the Course Repository

  1. From your Replit home page, look for an option to create or import a project.
  2. Choose the option to import from GitHub if it is available.
  3. Paste the course repository link.
  4. Wait for Replit to copy the files.
  5. Open the course folder in the file list.
  6. Look for the notebooks/, data/, and setup/ folders.

This option keeps the course files together in one workspace.

Option 2: Create a New Python Repl

  1. From your Replit home page, create a new repl.
  2. Choose Python as the language.
  3. Name the repl something clear, such as it1009c-practice.
  4. Open the main Python file, often named main.py.
  5. Type or paste a short practice example.
  6. Click Run.

This option is best for small code experiments, not full notebook activities.

Working with Notebooks in Replit

Notebook support in Replit may vary. If a notebook opens and runs correctly, you may use it as directed by your instructor.

If a notebook does not run:

  1. Open the notebook in Binder or Colab instead.
  2. Or copy one small code cell into main.py.
  3. Run the code.
  4. Read the output.
  5. Copy the next small code cell only after the first one works.

This keeps the work manageable and helps you see what each part does.

Running Python Files

  1. Open the Python file you want to run.
  2. Read the code before running it.
  3. Click Run.
  4. Look at the output panel.
  5. If there is an error, read the message and fix one thing at a time.
  6. Run the file again after each change.

Replit Tips

  1. Keep practice code short.
  2. Run your work often.
  3. Change one thing at a time.
  4. Type code yourself when possible.
  5. Use Binder or Colab for notebook assignments unless your instructor says otherwise.