Minimal Python 3.11 repository for 4Geeks data science assignments. Several useful Python packages and VSCode extensions are installed on Codespace boot-up. Directories for models and data are created within the Codespace but excluded from tracking. The notebooks directory contains notebook.ipynb
, run this notebook to verify the environment. It can then be deleted or renamed to use for your project.
-
Fork the Repository
- Click the "Fork" button on the top right of the GitHub repository page
- 4Geeks students: set 4GeeksAcademy as the owner - 4Geeks pays for your codespace usage. All others, set yourself as the owner
- Give the fork a descriptive name. 4Geeks students: I recommend including your GitHub username to help in finding the fork if you loose the link
- Click "Create fork"
- 4Geeks students: bookmark or otherwise save the link to your fork
-
Create a GitHub Codespace
- On your forked repository, click the "Code" button
- Select "Create codespace on main"
- If the "Create codespace on main" option is grayed out - go to your codespaces list from the three-bar menu at the upper left and delete an old codespace
- Wait for the environment to load (dependencies are pre-installed)
-
Start Working
- Open
notebooks/notebook.ipynb
in the Jupyter interface - Run the notebook to verify that your environment is working correctly - if there are no errors, you are all set!
- Open
-
Prerequisites
- Git
- Python >= 3.10
-
Fork the repository
- Click the "Fork" button on the top right of the GitHub repository page
- Optional: give the fork a new name and/or description
- Click "Create fork"
-
Clone the repository
- From your fork of the repository, click the green "Code" button at the upper right
- From the "Local" tab, select HTTPS and copy the link
- Run the following commands on your machine, replacing
<LINK>
and<REPO_NAME>
git clone <LINK> cd <REPO_NAME>
-
Set Up Environment
python -m venv venv source venv/bin/activate pip install -r requirements.txt
-
Launch Jupyter & start the notebook
jupyter notebook notebooks/notebook.ipynb
Once the notebook opens in your web browser, run it once to verify that your environment is working correctly - if there are no errors, you are all set!
.
├──.devcontainer
│ └── devcontainer.json # Codespace/devcontainer configuration
│
├── data/ # Empty directory for data
├── models/ # Empty directory for models
├── notebooks # Notebooks directory
│ └── notebook.ipynb # Test notebook with library version checks
│
├── .gitignore # Files and directories listed will be ignored by git
├── LICENSE # Open source GNU license - copy, modify and distribute this repo freely
├── README.md # This file
└── requirements.txt # List of Python packages installed during Codespace creation
Base image: Python 3.11
Packages installed via requirements.txt
:
- Jupyter 1.1.1
- matplotlib 3.10.3
- numpy 2.3.2
- pandas 2.3.1
- pyarrow 21.0.0
- scipy 1.16.1
- scikit-learn 1.7.1
- seaborn 0.13.2
If you need to install additional Python packages, you can do so via the terminal with: pip install packagename
.
Sepcified via devcontainier.json
.
VSCode extensions can be added via the Extensions tab located on the activities panel at the left once inside the Codespace.