Python from bootcamp for MS | NCI
-
Clone the repository:
git clone https://github.com/iAnisdev/ms-ai-bootcamp-python cd ms-ai-bootcamp-python
-
Create a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the Python scripts directly:
python numpy.py
-
Alternatively, you can run the notebooks by setting up Jupyter as described below.
Follow the steps below to set up Jupyter notebooks in Visual Studio Code:
-
Install the Python Extension in VSCode:
- Open VSCode and go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or press
Ctrl+Shift+X
. - Search for "Python" and install the official extension by Microsoft.
- Open VSCode and go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or press
-
Install Jupyter Extension:
- In the same Extensions view, search for "Jupyter" and install the Jupyter extension.
-
Open any .ipynb file:
- To open an existing notebook, simply navigate to the
.ipynb
file, and VSCode will automatically open it with the Jupyter interface.
- To open an existing notebook, simply navigate to the
-
Select Python Kernel:
- Once the notebook is opened, VSCode will prompt you to select a Python kernel. Choose the interpreter you wish to use (e.g.,Python 3.12.0).
-
Run Cells:
- You can now run each cell in your Jupyter notebook by clicking the "Run" button next to the cell or using the shortcut
Shift+Enter
.
- You can now run each cell in your Jupyter notebook by clicking the "Run" button next to the cell or using the shortcut