Step-by-Step Guide for Setting Up the Environment in GitHub Codespaces:
1. Go to the Repository:
○ Open the provided link: [Link]
○ This will take you to the GitHub repository containing the setup for the Python
activity.
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 a few 1-2 MINUTES for the Codespace to initialize.
○ Once it's ready, you will be automatically redirected to the integrated
development environment (IDE) within your browser.
4. Run Python Commands:
○ Open the file [Link]
○ Now you are ready to write Python commands and run the code
Write some Python code to test, such as:
Python
print("Hello, Python in Codespaces!")
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.