Customize Your Environment Quickstart

User Guide (Latest)

Use this documentation to learn how to customize your container environment by adding a package to your to NVIDIA AI Workbench project. For the full list of quickstarts, see Quickstart Guides.

The base container that you choose when you create your AI Workbench project might not have all the features that you need. You can customize your project by installing additional packages, customizing mounts, and defining new environment variables.

In this quickstart, you use the AI Workbench desktop application to perform the following tasks:

  1. Open AI Workbench and start your project environment

  2. Customize your project by installing a package

  3. Rebuild your project environment

  4. Test by using your new package in code

Before you can complete the steps in this quickstart, you need the following:

  1. Start AI Workbench by double clicking the icon on your desktop, or by searching for the program and pressing enter. The icon has the NVIDIA logo in it.

    AI Workbench starts and the My Locations page appears.

  2. On the My Locations page, for Select a location, click Local.

    AI Worbench connects to the location and the My Projects page appears.

  3. Click the project that you want to use for this quickstart.

    The project opens.

  4. Click Environment, and then click Start Environment.

Use the following procedure to add a package to your AI Workbench project.

  1. Near the top of the AI Workbench window, click Open JupyterLab.

    JupyterLab opens in your default browser ready for you to start working.

  2. In JupyterLab, in the file browser, double-click requirements.txt to open it.

    The file opens and you should see an entry for jupyterlab.

  3. Move to the first empty line in the file, type numpy, and then save the file.

  4. In JupyterLab, choose File, and then click Shut Down. Confirm shut down and close the browser tab.

Whenever you change your project environment, you must rebuild the project before you can access the changes. Use the following procedure to rebuild your environment.

  1. In AI Workbench, on the Environment page, if your environment is running, click Stop Environment.

    Wait until you see READY next to Environment.

  2. Click Start Build.

    The project builds. Wait until you see Build Ready in the status bar.

  3. Scroll to the Packages section and verify that you see numpy in the list.

  4. Click Start Environment.

After you add the package to your project and rebuild the container environment, you can use the new package in your code.

  1. Near the top of the AI Workbench window, click Open JupyterLab.

    JupyterLab opens in your default browser ready for you to start working.

  2. In JupyterLab, navigate to the code folder. If your project already has a notebook, click to open it. Otherwise; create a new notebook by choosing Python 3 (ipykernel).

  3. In your notebook, enter the following code and then click run.

    Copy
    Copied!
                

    import numpy as np

  4. Enter the following code and then click run.

    Copy
    Copied!
                

    print(np.e)

    You should see the following output which is the value of e.

    Copy
    Copied!
                

    2.718281828459045

  5. Save your notebook.

  6. In JupyterLab, choose File, and then click Shut Down. Confirm shut down and close the browser tab.

  7. In AI Workbench, wait until you see 0 apps running in the status bar.

  8. Click Environment, and then click Stop Environment.

Previous Basic Quickstart (CLI)
Next Customize Your Environment Quickstart (CLI)
© Copyright © 2024, NVIDIA Corporation. Last updated on Jun 10, 2024.