Launch Red Hat OpenShift AI

In this learning path, we use a pre-existing Jupyter Notebook project to start exploring data science. Project Jupyter offers the interactive JupyterHub and JupyterLab tools, which we'll introduce in this path.

 

Explore the JupyterLab environment

You are now inside your JupyterLab environment (Figure 11). It's a web-based environment, but everything you do here is actually happening on the OpenShift AI cluster. This means that, without having to install and maintain anything on your own computer, and without disposing of lots of local resources such as CPU and RAM, you can conduct your data science work in this powerful and stable managed environment.

JupyterLab offers an interactive integrated development environment.
Figure 11. JupyterLab offers an interactive integrated development environment.

You are now in a window that resembles a file browser on a desktop. The window displays the files and folders that are saved inside your own personal space inside OpenShift AI. It's pretty empty right now, though. So the first thing we will do is add content into this environment by using Git.

Clone a Git repository

You can clone a Git repository in JupyterLab through the left-hand toolbar or the Git menu option in the main menu (Figure 12).

Git repositories are available in the main menu at the top of the screen and in the toolbar on the left.
Figure 12. Git repositories are available in the main menu at the top of the screen and in the toolbar on the left.

Let's clone a repository using the left-hand toolbar. Click on the Git icon, shown in Figure 13.

The Git icon is the third icon from the top in the JupyterLab toolbar.
Figure 13. The Git icon is the third icon from the top in the JupyterLab toolbar.

Then click on Clone a Repository (Figure 14).

After selecting the Git icon, select "Clone a Repository."
Figure 14. After selecting the Git icon, select "Clone a Repository."

Enter your git repository URL, which for this learning path is https://github.com/rh-aiservices-bu/firstJupyterNotebook.git. Then click CLONE (Figure 15).

Finish cloning a repository by clicking the CLONE button.
Figure 15. Finish cloning a repository by clicking the CLONE button.

Cloning takes a few seconds, after which you can double-click and navigate to the newly-created folder that contains your cloned Git repository.

For this learning path, double-click and navigate to the newly-created folder, named firstJupyterNotebook. The Git repository contains two files: getting-started.ipynb and README.md (Figure 16).

The folder in Jupyter Lab shows the files in the firstJupyterNotebook project.
Figure 16. The folder in Jupyter Lab shows the files in the firstJupyterNotebook project.
Previous resource
Launch JupyterHub
Next resource
Learn how to use a Jupyter notebook