페이지

2022년 2월 19일 토요일

VSCode

 Visual Studio Code(VSCode) is  an open-source code editor developed by Microsoft Corporation which can be used with many programming languages, including Python. It allows debugging adn is integrated with version control tools such as Git; we can even run Jupyter notebooks (which we will describe later in this chapter) within VSCode. Instructions for installation very by whether you are using a Linux, macOS, or Windows operating system: please wee individual instructions at https://code.visualstudio.com for your system, Once installed, we need to clone a copy of the source code for the projects in this book using Git, with the command:


git clone git@github.com:PackPublishing/Hands-On-Generative-AI-with-Python-and-TensorFlow-2.git


This command will copy the source code for the projects in this book to our laptop, allowing us to locally run and modify the code. Once you have the code copied, open the GitHub repository for this book using VSCode(Figure 2.1).We are now ready to start installing some of the tools we will need; open the file install.sh

One feature that will be of particular use to us is the fact that VSCode has an integrated(Figure 2.2) terminal where we can run commands: you can access this by selecting View, then Terminal from the drop-down list, which will open a command-line prompt:

Select the TERMINAL. tab, and bash for the interpreter; you should now be able to enter normal commands. Change the directory to Chapter_2, where we will run our installation script, which you can open in VSCode.


The installation script we will run will download and install t he various components we will need in our end-to-end TensorFlow lab; the overarching framework we will use for these experiments will be the Cubeflow library, which handles the various data and training pipeliens that we will utilize for our projects in the later chapters of this volume. In the rest of this chapter, we will describe how Kubeflow is built on Docker and Kubernetes, and how to set up Kuberflow on serveral popular cloud providers.


Kubernetes, the technology which Kuberflow is based  on, is fundamentally a way to manage containerized applications created using Docker, which allows for reproducible, lightweight execution environments to be created and presisted for a variety of applications. While we will make use of Docker for creating reproducible experimental runtimes, to understand its place in the overall landscape of virtualization solutions(and why it has become so important to modern application development), let us take a detour to describe the background of Docker in more detail.

댓글 없음: