Skip to content

Latest commit

 

History

History
60 lines (40 loc) · 1.46 KB

README.md

File metadata and controls

60 lines (40 loc) · 1.46 KB

Cookie Cutter Extension

Cloud AI Platform Notebooks JupyterLab extension cookiecutter project for quickly generating a JupyterLab extension that follows AI Platform best practices. The extension will display a list of strings retrieved from a JupyterLab backend in a React-based side panel widget. Follow the Quick Start instructions to get JupyterLab up and running with a custom example extension installed.

Prerequisites

  • Python 3.5+
  • NPM (For local development)

Quick Start

Install cookiecutter:

pip install cookiecutter

Install pipenv:

pip install pipenv

Generate a new extension from the template. Press enter at each of the prompts to accept the default value or add the --no-input flag:

cookiecutter https://github.com/gclouduniverse/jupyter-extensions-cookiecutter -o my_extension

Change to the generated project directory:

cd my_extension/jupyter-extensions # Change this to the generated main directory

To build, install, and launch run:

npm install && \
npm run bootstrap && \
pipenv shell && \
pipenv install && \
npm run link

Change to the generated extension directory:

cd jupyterlab_cookies # Change this to the generated extension directory
npm run install-extension

Return to the main directory, and start the development server:

cd ..
npm run devserver