jupyterlab/mimerender-cookiecutter

Name: mimerender-cookiecutter

Owner: JupyterLab

Description: A cookiecutter for rendering MIME type based output

Created: 2016-10-24 21:47:08.0

Updated: 2018-01-09 22:22:43.0

Pushed: 2017-11-20 17:45:01.0

Homepage: null

Size: 170

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

mimerender-cookiecutter

A cookiecutter template for creating a JupyterLab and Jupyter Notebook extension for rendering specific mime types and file extensions.

Examples
Usage

Install cookiecutter:

install cookiecutter

Use cookiecutter to generate a package:

iecutter https://github.com/jupyterlab/mimerender-cookiecutter
Prompts

The cookiecutter will prompt you with the following questions and generate a project according to your responses:

Project structure

The project is divided into 2 top-level directories, one for each extension (lab and notebook).

In most cases, you will only need to edit the OutputWidget._render method in labextension/src/output.js (for rendering output data of a specific mime type) and the DocWidget.onUpdateRequest method in labextension/src/doc.js (if your extension should render files of a specific type).

Workflow

This cookiecutter will change over time to adapt to API changes and best practices, so you should be able to rebase your extension from an updated version of the cookiecutter. The following is the recommended workflow:

workflow

Package names

We suggest that extension names start with jupyterlab_ and use underscores if needed to improve readability, such as jupyterlab_myextension.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.