Gen-AI Developer Classroom notes 29/Jun/2025

Setting up Developer Environment for Building Agents

  • Create a folder mkdir virtualenvdemo && cd virtualenvdemo
  • Create a virtual environment python -m venv .venv
  • Activate virtual environment on Terminal
    • Windows: .venv\Scripts\activate
      Preview
    • Linux/Mac
      Preview
  • Python has two types of libraries
    • Standard Library: This is shipped with python installation
    • Third Party Or Community Packages: This requires an additional installation. python has a pypi
  • To install packages pip install <package-name>
  • To have a way to list out all the requirements we use command pip freeze
    Preview
  • We create requirements.txt to list out all requirements pip freeze > requirements.txt
  • If we have requirements.txt we can install all dependencies using pip install -r requirements.txt
  • Lets install necessary extensions
    • Python (Microsoft)
    • Jupyter
  • In Visual studio Code lets use the virtual environment created
    • Use command pallete (Windows-Ctrl+Shift+p, Mac: Cmd+Shift+p)
    • Select the interpreter
      Preview

Lets create a Jupyter Notebook

  • Create a file with name hello.ipynb in vscode
    Preview
    Preview

  • Using jupyter notebook we can create cells which are either markdown or code

  • Watch classroom recording for visual guidance

By continuous learner

enthusiastic technology learner

Leave a Reply

Discover more from Direct AI Powered By Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading