Coder Social home page Coder Social logo

global19-atlassian-net / theme-cookiecutter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jupyterlab/theme-cookiecutter

0.0 2.0 0.0 145 KB

A cookiecutter template to help you make new JupyterLab theme extensions

License: BSD 3-Clause "New" or "Revised" License

JavaScript 4.43% CSS 69.59% TypeScript 4.04% Python 21.93%

theme-cookiecutter's Introduction

theme-cookiecutter

Build Status

A cookiecutter template to help you make new JupyterLab theme extensions.

Examples

Usage

Install cookiecutter:

pip install cookiecutter

Use cookiecutter to generate a package:

cookiecutter https://github.com/jupyterlab/theme-cookiecutter

Prompts

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

  • author_name: Your full name.
  • python_name: The name of the Python package for your JupyterLab extension (e.g. jupyterlab_pink_theme).
  • labextension_name: Your JupyterLab extension name (e.g. @my-organization/jupyterlab-pink-theme).
  • project_short_description: A short description of your JupyterLab theme extension.
  • has_binder: Whether you extension has a binder link or not.
  • repository: Your theme's repository. If the code of your theme is hosted on Github, this should just be the main Github url (e.g. https://github.com/my-organization/jupyterlab_pink_theme).

Project structure

Once you fill in the cookiecutter prompts, you'll get a basic theme extension. The files within are structured as follows:

  • python_name
    • style: The assets (.css files, images, etc) that will make up your theme's actual style. This start out with the style from the default Jupyterlab light theme.
    • src - The extension source.
      • index.ts: Entry point for the JupyterLab extension
    • package.json: Metadata files that defines the files in your extension and their dependencies
    • tsconfig.json: Tells the TypeScript compiler how to build your extension
    • setup.py: The Python distribution file

Package names

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

theme-cookiecutter's People

Contributors

telamonian avatar blink1073 avatar ian-r-rose avatar saulshanabrook avatar martinrenou avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.