The Notebook Template Creator is a VS Code extension that allows users to create and manage templates from existing notebooks. This extension aims to streamline the process of reusing notebook structures, saving time and effort. Users can save as many templates as they want with the custom name they
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
The Notebook Template Creator is a VS Code extension that allows users to create and manage templates from existing notebooks. This extension aims to streamline the process of reusing notebook structures, saving time and effort. Users can save as many templates as they want with the custom name they provide.
What's New
Persistent Templates:
Templates are now stored in a persistent global storage location, ensuring your templates are not lost when the extension is updated or reinstalled.
Improved Edge Case Handling:
The extension now gracefully handles scenarios where no templates exist for loading, inserting, or deleting, and displays appropriate messages to the user.
Features
Create templates from any open Jupyter notebook.
Load templates into new or existing notebooks.
Insert template cells into an open notebook.
Delete templates you no longer need.
Templates are stored persistently and are not removed on extension updates.
Usage
Create a Template:
Open a Jupyter notebook, then run the Create Jupyter Template command from the Command Palette. Enter a name for your template when prompted.
Load a Template:
Use the Load Jupyter Template command to create a new notebook from a saved template.
Insert a Template:
Use the Insert Jupyter Template command to insert template cells into your currently open notebook.
Delete a Template:
Use the Delete Jupyter Template command to remove unwanted templates.
Notes
If no templates exist, the extension will inform you when you attempt to load, insert, or delete templates.
Templates are stored in a dedicated templates folder within the extension's global storage path.
License
MIT
Packaging & Deployment
If you see the error vsce is not recognized as a command, you need to install the VS Code Extension Manager globally:
npm install -g @vscode/vsce
Then you can package your extension with:
vsce package
This will generate a .vsix file for deployment.
Thank you for using Notebook Template Creator! We hope it enhances your productivity.