Step-by-Step Guide for Setting Up the Environment in GitHub Codespaces:
1. Go to the Repository:
○ Open the provided link: https://github.com/interleap-team/flask-activity-template
○ This will take you to the GitHub repository containing the setup for the Python
activity.
○ If you aren’t logged into GitHub, please do Sign-in
2. Create a Codespace:
○ On the repository page, look for the Code button (green) near the top right
corner.
○ Next to it, there is a tab called Codespaces. Click on it.
○ Select Create Codespace on Main. This will create a new Codespace instance
based on the main branch of the repository. If there’s no option to create it,
ensure your account has GitHub Codespaces enabled.
3. Wait for the Codespace to Start:
○ It may take around 5-7 MINUTES for the Codespace to initialize. Be patient.
○ Once it's ready, you will be automatically redirected to the integrated
development environment (IDE) within your browser.
4. Run Python Commands:
○ Now refer to the second activity PDF file, and look for appropriate files in
directory on the left side panel
○ For example - under activities folder there will be basic.py file
○ Now you can run the code under these files, and modify it as per task
requirements
○ Project files will be under project folder
5. Commit Your Changes (Optional):
○ If you want to save your progress or push changes to GitHub, click on the
Source Control icon in the left panel.
○ Stage your changes, add a commit message, and push the changes to the
repository.
6. Closing the Codespace:
○ After finishing your work, you can stop the Codespace by clicking on your profile
icon (bottom left corner) and selecting Stop Current Codespace. This will save
your workspace.