Setup instructions

setup-steps

1. Clone project repository (GitHub)

This course is hands-on, allowing you to explore and work directly with the code. The sample code is provided in Jupyter notebooks, available in a public GitHub repository. The code is kept intentionally simple, ensuring that programmers of all skill levels can easily follow along.

Code may change over time. As a result the code shown in video may be slightly different than the code in respository.

You need to have git client installed on your machine.

  1. Create a new folder as the [root-folder-for-course-repository] e.g., gen-ai-app-dev-course
  2. Review the repository gen-ai-app-dev
  3. Clone the code repository : gen-ai-app-dev
git clone  https://github.com/acloudfan/gen-ai-app-dev.git
  1. Clone the template repository : gen-ai-app-dev-template
git clone https://github.com/acloudfan/gen-ai-app-dev-template.git

You will use the template repository for creating your own notebooks for exercises, experimentation and projects. More on this in the next section.

2. Install Anaconda (local Jupyter lab)

You will need to setup your local machine for Jupyter notebooks. If you are new to Jupyter notebooks (and lab), I suggest that you watch a couple of videos on YouTube before proceeding.

There are multiple ways to setup Jupyter Lab on a machine. If you have a preferred way or installation, please feel free to use it. It should be OK as long as Python version is compatible with the code provided in the project repository.

If you plan to use a different Jupyter Lab setup, you do not need to install Anaconda. But you MUST follow the rest of the instructions; adjust the instructions for your setup.

You may use your preferred Jupyter Lab environment as long as it is setup for Python version 3.12.4

If you would prefer to use your own preferred JupyterLab setup please skip this step.

  1. Checkout the installation instructions for your machine (Windows/macOS/Linux)

  2. Follow the instructions for your specific platform to install the

anaconda-install-page

Create virtual environment

Launch Anaconda Navigator. Refer to the illustration below and follow the steps.

  1. Open the Anaconda natigator & Select the Environments in left panel
  2. Click on the green triangle on any existing environment
  3. Select open terminal
  4. Run the command in the terminal to create the virtual environment
conda config --append channels conda-forge  

conda create  --yes --name gen-ai-app-dev-course  python=3.12.4
  1. Close the terminal window

open-terminal

Environment creation will take a few minutes to complete. Once it is successfuly created, you will see it in the list of environments in the Anaconda navigator

3.Install Python packages

To provide a consistent experience from this course, almost all Python packages used in this course will be provided in the requirements.txt provided in the repository. In case you are using your own preferred Jupyter Lab setup, please install the packages using the provided requirements.txt file.

  1. Select the environment, you created in earlier step e.g., gen-ai-app-dev-course

  2. Click on Green button next to environment name

  3. Select terminal from the list

anaconda-open-terminal

  1. Change folder to [root-folder-for-course-repository]/gen-ai-app-dev/Setup/

  2. Run the commands below:

conda install --yes --file requirements.txt

4. Verify installation

  1. Select the environment

  2. Click on Green button next to environment name

  3. Select Open with Jupyter Notebook from the list

anaconda-open-jupyter.png

  1. Change folder to [root-folder-for-course-repository]/gen-ai-app-dev-template/Setup/

  2. Create a new notebook with the name test-notebook

create-new-jupyter-notebook

  • Select Python 3 kernel

select-python3-kernel

  1. Re-name the notebook to test-notebook

  2. Run the following commands to test

  • Following command should show version Python 3.12.4
!python --version
!conda list