Cookie cutter is a project that provides a skeleton framework for a project—a project to make a project. In particular, you can generate the framework, skeleton, or starter files for creating your own widget.
You first need to install cookiecutter
. We had used conda
to install Jupyter, so we can use conda
to install cookiecutter
as follows:
conda install cookiecutter
You can also use pip
.
Also, it is assumed that you will be producing your widget for consumption by the whole world. The current mechanism for doing this is to have the code for your widget stored in a GitHub repository for all to see.
- We first have to generate our skeleton widget by invoking
cookiecutter
:
cookiecutter https://github.com/jupyter/widget-cookiecutter.git
Here, we are running the cookiecutter
code. It will automatically prompt for a number of settings regarding your widget, as follows:
author_name []: Dan Toomey author_email...