Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@jupyter/react-components

jupyterlab-contrib150.7kBSD-3-Clause0.17.1TypeScript support: included

A component library for building extensions in Jupyter frontends.

Jupyter, React

readme

UI Toolkit for Jupyter

WIP this is early work in progress. But don't hesitate to open issues and PRs if you want to help.

Extension status NPM Version Toolkit CI Status Deploy Docs Status Binder

Toolkit for Jupyter Artwork

Explore the components | Online JupyterLab demo

Introduction

The UI Toolkit is a component library for building web interfaces in Jupyter ecosystem (JupyterHub, Jupyter Widgets, JupyterLab,...).

Features of the library include:

  • Implements the Jupyter design language: All components follow the design language of Jupyter – enabling developers to create extensions that have a consistent look and feel with the rest of the ecosystem.
  • Automatic support for color themes: All components are designed with theming in mind and will automatically display the current application theme.
  • Use any tech stack: The library ships as a set of web components, meaning developers can use the toolkit no matter what tech stack (React, Vue, Svelte, etc.) their extension is built with.
  • Accessible out of the box: All components ship with web standard compliant ARIA labels and keyboard navigation.

This repository contains three packages:

Those features are brought through the Fast Design. And it is inspired by the WebView toolkit for Visual Studio Code as example for creating a customized toolkit.

Release

The UI Toolkit is currently in a proof of concept. Track progress towards 1.0 here. Styles and API are not guarantee between minor versions prior to v1.0.0.

Getting started

You will need to install yarn (for example with npm install --global yarn).

To build the components packages, execute:

yarn install
yarn build

Then to interactively test or develop web components:

cd packages/components
yarn start

JupyterLab demo extension

To test locally the JupyterLab demo extension, using conda package manager:

conda create -n jupyter-toolkit -c conda-forge -y nodejs yarn jupyterlab=3
conda activate jupyter-toolkit
yarn install
yarn build
pip install -e .
jupyter labextension develop --overwrite .

Documentation

Further documentation can be found in the following places:

Contributing

See the contributing documentation.

changelog

Changelog

0.17.1

(Full Changelog)

Bugs fixed

Contributors to this release

(GitHub contributors page for this release)

@fcollonval | @github-actions

0.17.0

(Full Changelog)

Enhancements made

Contributors to this release

(GitHub contributors page for this release)

@fcollonval | @github-actions | @Mehak261124

0.16.7

(Full Changelog)

Bugs fixed

Contributors to this release

(GitHub contributors page for this release)

@fcollonval | @github-actions

0.16.6

(Full Changelog)

Bugs fixed

Contributors to this release

(GitHub contributors page for this release)

@fcollonval

0.16.5

(Full Changelog)

Bugs fixed

  • Ensure internal classes used for style :host(.<class>) are not overridden by className #117 (@fcollonval)

Contributors to this release

(GitHub contributors page for this release)

@fcollonval

0.16.4

(Full Changelog)

Bugs fixed

Contributors to this release

(GitHub contributors page for this release)

@fcollonval

0.16.3

(Full Changelog)

Enhancements made

  • Keep the background color transparent on hover for stealth buttons #115 (@fcollonval)

Bugs fixed

Maintenance and upkeep improvements

Contributors to this release

(GitHub contributors page for this release)

@fcollonval | @github-actions

0.16.2

(Full Changelog)

Bugs fixed

Contributors to this release

(GitHub contributors page for this release)

@fcollonval | @github-actions

0.16.1

(Full Changelog)

Bugs fixed

Maintenance and upkeep improvements

Contributors to this release

(GitHub contributors page for this release)

@dependabot | @fcollonval | @github-actions

0.16.0

(Full Changelog)

Enhancements made

Bugs fixed

Maintenance and upkeep improvements

Contributors to this release

(GitHub contributors page for this release)

@dependabot | @fcollonval | @github-actions

0.15.3

(Full Changelog)

Bugs fixed

Maintenance and upkeep improvements

Contributors to this release

(GitHub contributors page for this release)

@dependabot | @fcollonval | @github-actions

0.15.2

(Full Changelog)

Bugs fixed

Contributors to this release

(GitHub contributors page for this release)

@fcollonval

0.15.1

(Full Changelog)

Bugs fixed

Maintenance and upkeep improvements

Contributors to this release

(GitHub contributors page for this release)

@dependabot | @fcollonval | @github-actions

0.15.0

(Full Changelog)

Enhancements made

Contributors to this release

(GitHub contributors page for this release)

@fcollonval

0.14.0

(Full Changelog)

Enhancements made

Bugs fixed

Maintenance and upkeep improvements

Contributors to this release

(GitHub contributors page for this release)

@brichet | @dependabot | @fcollonval | @github-actions

0.13.3

(Full Changelog)

Bugs fixed

Maintenance and upkeep improvements

Contributors to this release

(GitHub contributors page for this release)

@dependabot | @fcollonval | @github-actions

0.13.2

(Full Changelog)

Bugs fixed

Contributors to this release

(GitHub contributors page for this release)

@fcollonval | @github-actions

0.13.1

(Full Changelog)

Enhancements made

Bugs fixed

  • Try to read Jupyter CSS properties even if body attribute is not set. #71 (@fcollonval)

Contributors to this release

(GitHub contributors page for this release)

@fcollonval | @github-actions

0.13.0

(Full Changelog)

Enhancements made

Bugs fixed

  • Fix autowidth computation taking into account the indicator width #70 (@fcollonval)

Contributors to this release

(GitHub contributors page for this release)

@fcollonval | @github-actions

0.12.0

(Full Changelog)

Enhancements made

Contributors to this release

(GitHub contributors page for this release)

@fcollonval | @github-actions

0.11.0

(Full Changelog)

Enhancements made

Maintenance and upkeep improvements

Contributors to this release

(GitHub contributors page for this release)

@dependabot | @fcollonval | @github-actions

0.10.1

(Full Changelog)

Bugs fixed

  • Fix jp-toolbar.positioning-region not filling jp-toolbar size #60 (@fcollonval)

Maintenance and upkeep improvements

Documentation improvements

Contributors to this release

(GitHub contributors page for this release)

@dependabot | @fcollonval | @github-actions

0.10.0

(Full Changelog)

Maintenance and upkeep improvements

Documentation improvements

Other merged PRs

Contributors to this release

(GitHub contributors page for this release)

@dependabot | @fcollonval | @github-actions | @Max-ChenFei