



















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
computer science kubernetes ai
Typology: Schemes and Mind Maps
1 / 27
This page cannot be seen from the preview
Don't miss anything!




















.......................................................................................................................... .......................................................................................................................... .......................................................................................................................... ..........................................................................................................................
PREFACE CHAPTER 1. ACCESSING YOUR WORKBENCH IDE CHAPTER 2. WORKING IN JUPYTERLAB 2.1. CREATING AND IMPORTING JUPYTER NOTEBOOKS 2.1.1. Creating a Jupyter notebook 2.1.2. Uploading an existing notebook file to JupyterLab from local storage 2.1.3. Additional resources 2.2. COLLABORATING ON JUPYTER NOTEBOOKS BY USING GIT 2.2.1. Uploading an existing notebook file from a Git repository by using JupyterLab 2.2.2. Uploading an existing notebook file to JupyterLab from a Git repository by using the CLI 2.2.3. Updating your project with changes from a remote Git repository 2.2.4. Pushing project changes to a Git repository 2.3. MANAGING PYTHON PACKAGES 2.3.1. Viewing Python packages installed on your workbench 2.3.2. Installing Python packages on your workbench 2.4. TROUBLESHOOTING COMMON PROBLEMS IN WORKBENCHES FOR USERS CHAPTER 3. WORKING IN CODE-SERVER 3.1. CREATING CODE-SERVER WORKBENCHES 3.1.1. Creating a workbench 3.1.2. Uploading an existing notebook file to code-server from local storage 3.2. COLLABORATING ON WORKBENCHES IN CODE-SERVER BY USING GIT 3.2.1. Uploading an existing notebook file from a Git repository by using code-server 3.2.2. Uploading an existing notebook file to code-server from a Git repository by using the CLI 3.2.3. Updating your project in code-server with changes from a remote Git repository 3.2.4. Pushing project changes in code-server to a Git repository 3.3. MANAGING PYTHON PACKAGES IN CODE-SERVER 3.3.1. Viewing Python packages installed on your code-server workbench 3.3.2. Installing Python packages on your code-server workbench 3.4. INSTALLING EXTENSIONS WITH CODE-SERVER 3 4 5 5 5 5 6 6 6 7 7 8 9 9 9 11 13 13 13 17 18 18 18 19 20 20 21 21 22 Table of Contents
PREFACE In Red Hat OpenShift AI, when you create a workbench, you select a workbench image that includes an integrated development environment (IDE) for developing your machine learning (ML) models. You can use the following data science IDEs for developing ML models with OpenShift AI: JupyterLab code-server RStudio Server (Technology Preview feature)
The RStudio workbench images are currently unavailable for disconnected environments. For information about RStudio Server, see the Release Notes. PREFACE
CHAPTER 1. ACCESSING YOUR WORKBENCH IDE To access a workbench IDE, use the link provided in the OpenShift AI interface. Prerequisite You have created a data science project and a workbench. Procedure
Collaborating on Jupyter notebooks by using Git 2.2. COLLABORATING ON JUPYTER NOTEBOOKS BY USING GIT If your files are stored in Git version control, you can clone a Git repository to work with them in JupyterLab. When you are ready, you can push your changes back to the Git repository so that others can review or use your models.
You can use the JupyterLab user interface to clone a Git repository into your workspace to continue your work or integrate files from an external project. Prerequisites You have a launched and running workbench based on a JupyterLab image. Read access for the Git repository you want to clone. Procedure
Check that the contents of the repository are visible in the file browser in JupyterLab, or run the ls command in the terminal to verify that the repository shows as a directory.
You can use the command line interface to clone a Git repository into your workspace to continue your work or integrate files from an external project. Prerequisites You have a launched and running workbench based on a JupyterLab image. Procedure
You can pull changes made by other users into your data science project from a remote Git repository. Prerequisites You have a launched and running workbench based on a JupyterLab image. You have credentials for logging in to Jupyter. You have configured the remote Git repository. CHAPTER 2. WORKING IN JUPYTERLAB
Your most recently pushed changes are visible in the remote Git repository. 2.3. MANAGING PYTHON PACKAGES In JupyterLab, you can view the Python packages that are installed on your workbench image and install additional packages.
You can check which Python packages are installed on your workbench and which version of the package you have by running the pip tool in a notebook cell. Prerequisites Log in to JupyterLab and open a Jupyter notebook. Procedure
aiohttp 3.7. alembic 1.5. appdirs 1.4. argo-workflows 3.6. argon2-cffi 20.1. async-generator 1. async-timeout 3.0. attrdict 2.0. attrs 20.3. backcall 0.2. Additional resources Installing Python packages on your workbench
You can install Python packages that are not part of the default workbench by adding the package and the version to a requirements.txt file and then running the pip install command in a notebook cell.
CHAPTER 2. WORKING IN JUPYTERLAB
Although you can install packages directly, it is recommended that you use a requirements.txt file so that the packages stated in the file can be easily re-used across different workbenches. Prerequisites Log in to JupyterLab and open a Jupyter notebook. Procedure
Red Hat recommends specifying exact package versions to enhance the stability of your workbench over time. New package versions can introduce undesirable or unexpected changes in your environment’s behavior. To install multiple packages at the same time, place each package on a separate line.
Red Hat OpenShift AI Self-Managed 2.25 Working in your data science IDE
You might have run out of storage space on your workbench.
Contact your cluster administrator so that they can perform further checks. Red Hat OpenShift AI Self-Managed 2.25 Working in your data science IDE
CHAPTER 3. WORKING IN CODE-SERVER Code-server is a web-based interactive development environment supporting multiple programming languages, including Python, for working with Jupyter notebooks. With the code-server workbench image, you can customize your workbench environment to meet your needs using a variety of extensions to add new languages, themes, debuggers, and connect to additional services. For more information, see code-server in GitHub.
Elyra-based pipelines are not available with the code-server workbench image. 3.1. CREATING CODE-SERVER WORKBENCHES You can create a blank Jupyter notebook or import a Jupyter notebook in code-server from several different sources.
When you create a workbench, you specify an image (an IDE, packages, and other dependencies). You can also configure connections, cluster storage, and add container storage. Prerequisites You have logged in to Red Hat OpenShift AI. You have created a project. If you created a Simple Storage Service (S3) account outside of Red Hat OpenShift AI and you want to create connections to your existing S3 storage buckets, you have the following credential information for the storage buckets: Endpoint URL Access key Secret key Region Bucket name For more information, see Working with data in an S3-compatible object store. Procedure
b. From the Accelerator list, select a suitable accelerator profile for your workbench. If project-scoped accelerator profiles exist, the Accelerator list includes subheadings to distinguish between global accelerator profiles and project-scoped accelerator profiles. If the hardware profiles feature is enabled: a. From the Hardware profile list, select a suitable hardware profile for your workbench. If project-scoped hardware profiles exist, the Hardware profile list includes subheadings to distinguish between global hardware profiles and project-scoped hardware profiles. The hardware profile specifies the number of CPUs and the amount of memory allocated to the container, setting the guaranteed minimum (request) and maximum (limit) for both. b. If you want to change the default values, click Customize resource requests and limit and enter new minimum (request) and maximum (limit) values.
By default, the hardware profiles feature is not enabled: hardware profiles are not shown in the dashboard navigation menu or elsewhere in the user interface. In addition, user interface components associated with the deprecated accelerator profiles functionality are still displayed. To show the Settings → Hardware profiles option in the dashboard navigation menu, and the user interface components associated with hardware profiles, set the disableHardwareProfiles value to false in the OdhDashboardConfig custom resource (CR) in OpenShift. For more information about setting dashboard configuration options, see Customizing the dashboard.
b. Enter a description for the cluster storage. c. Select a storage class for the cluster storage.
You cannot change the storage class after you add the cluster storage to the workbench. d. For storage classes that support multiple access modes, select an Access mode to define how the volume can be accessed. For more information, see About persistent storage. Only the access modes that have been enabled for the storage class by your cluster and OpenShift AI administrators are visible. e. Under Persistent storage size, enter a new size in gibibytes or mebibytes. Use existing persistent storage to reuse existing storage and select the storage from the Persistent storage list.