Setting up template-based JupyterLab notebook creation
Written by
Updated at March 26, 2024
To create JupyterLab notebooks from a template, activate the JupyterLab-templates extension. To do this:
-
Create the
datasphere-templates
folder in the root directory of your project. -
In
datasphere-templates
, create a nested folder with any name, e.g.,template-group-1
. In this folder, create a template notebook with any name, e.g.,template_notebook1.ipynb
. -
You can create multiple templates for different use cases and group them in different folders.
Sample structure of the
datasphere-templates
folder used to store JupyterLab templates:datasphere-templates/ | |_ template-group-1/ | | | |_ template_notebook1.ipynb | |_ template_notebook2.ipynb | |_ template-group-2/ | |_ template_notebook3.ipynb |_ template_notebook4.ipynb
-
Refresh the page in your browser.
-
You will see the Template button in the Notebook section on the JupyterLab home page. Click it and select the folder and notebook you need.