All Products
Search
Document Center

Platform For AI:Notebook Gallery: Best practices for notebooks

Last Updated:Jun 16, 2026

Notebook Gallery offers ready-to-use notebook examples for popular AI scenarios. You can preview, run, or customize them in DSW instances.

Use Notebook Gallery

To access Notebook Gallery in the PAI console:

  1. Log on to the PAI console.

  2. Go to the Notebook Gallery page.

    You can open the Notebook Gallery page in either of the following ways:

    • Method 1:

      In the left navigation pane, choose Quick Start > Notebook Gallery.

    • Method 2:

      1. In the left navigation pane, click Workspaces. On the Workspace List page, click the workspace to open.

      2. In the left navigation pane of the workspace, choose Quick Start > Notebook Gallery.

  3. On the Notebook Gallery page, you can:

    • ① Search for examples

      Click a category under Hot Searches to filter examples, or search by name or description.

    • ② Run an example in DSW

      1. Click Open in DSW on an example card or on the details page of the example.

      2. In the Select an instance to open the notebook dialog box, select a workspace and an existing DSW instance, then click Open Notebook. Use a DSW instance that matches the recommended runtime image and instance specifications for the notebook.

      3. In the Notebook tab of the DSW instance, view, modify, or run the example.

    • ③ Share or preview an example

      Click an example card to view its details. Click Share to share the example link.

FAQ

Q: How to fix 'module not found' errors?

This error usually occurs because the required module is not pre-installed in your current image. Try one of the following solutions:

  1. Switch to the recommended image for the example. Different images include different pre-installed Python packages. For example, ModelScope images typically include torch and transformers.

  2. If you want to keep the current image, manually install the missing package before running the example: pip install torch (replace with the actual package name).

  3. Note: The Notebook and Terminal in JupyterLab may use different Python environments. If the package is installed in the Terminal but the Notebook still reports an error, run !pip install <package_name> in a notebook cell to install it in the correct environment.