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:
-
Log on to the PAI console.
-
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:
-
In the left navigation pane, click Workspaces. On the Workspace List page, click the workspace to open.
-
In the left navigation pane of the workspace, choose Quick Start > Notebook Gallery.
-
-
-
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
-
Click Open in DSW on an example card or on the details page of the example.
-
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.
-
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:
-
Switch to the recommended image for the example. Different images include different pre-installed Python packages. For example, ModelScope images typically include
torchandtransformers. -
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). -
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.