Skip to content

iAnisdev/ms-ai-bootcamp-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Project

Description

Python from bootcamp for MS | NCI

Table of Contents

Installation

  1. Clone the repository:

    git clone https://github.com/iAnisdev/ms-ai-bootcamp-python
    cd ms-ai-bootcamp-python
  2. Create a virtual environment (optional but recommended):

    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  3. Install the required dependencies:

    pip install -r requirements.txt

Usage

  1. Run the Python scripts directly:

    python numpy.py
  2. Alternatively, you can run the notebooks by setting up Jupyter as described below.

Setting Up Jupyter in VSCode

Follow the steps below to set up Jupyter notebooks in Visual Studio Code:

Steps

  1. 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.
  2. Install Jupyter Extension:

    • In the same Extensions view, search for "Jupyter" and install the Jupyter extension.
  3. 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.
  4. 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).
  5. 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.