|
1 | 1 | # UI Toolkit for Jupyter
|
2 | 2 |
|
3 |
| -**WIP this is very early work in progress and nothing is yet working.** But don't hesitate to open issues and PRs if you want to help. |
| 3 | +**WIP this is early work in progress.** But don't hesitate to open issues and PRs if you want to |
| 4 | +help. |
4 | 5 |
|
5 |
| - |
| 6 | +[](https://jupyterlab-contrib.github.io/) |
6 | 7 | [](https://www.npmjs.com/package/@jupyter-notebook/web-components)
|
7 | 8 | [](https://github.com/jupyterlab-contrib/jupyter-ui-toolkit/actions/workflows/ci.yml)
|
8 |
| - |
| 9 | +[](https://jupyterlab-contrib.github.io/jupyter-ui-toolkit/) |
9 | 10 | [](https://mybinder.org/v2/gh/jupyterlab-contrib/jupyter-ui-toolkit/main)
|
10 | 11 |
|
11 |
| - |
| 12 | + |
12 | 13 |
|
13 | 14 | ## Introduction
|
14 | 15 |
|
15 |
| -The UI Toolkit is a component library for building web interfaces in Jupyter ecosystem (JupyterHub, Jupyter Widgets, JupyterLab,...). |
| 16 | +The UI Toolkit is a component library for building web interfaces in Jupyter ecosystem (JupyterHub, |
| 17 | +Jupyter Widgets, JupyterLab,...). |
16 | 18 |
|
17 | 19 | Features of the library include:
|
18 | 20 |
|
19 |
| -- **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. |
20 |
| -- **Automatic support for color themes:** All components are designed with theming in mind and will automatically display the current application theme. |
21 |
| -- **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. |
22 |
| -- **Accessible out of the box:** All components ship with web standard compliant ARIA labels and keyboard navigation. |
23 |
| - |
24 |
| -Note this project started as a fork of the [WebView toolkit for Visual Studio Code](https://github.com/microsoft/vscode-webview-ui-toolkit) (licensed under MIT) on which Jupyter design specification. The fundamental technology used is [Fast Design](https://www.fast.design/). |
| 21 | +- **Implements the Jupyter design language:** All components follow the design language of Jupyter |
| 22 | + – enabling developers to create extensions that have a consistent look and feel with the rest of |
| 23 | + the ecosystem. |
| 24 | +- **Automatic support for color themes:** All components are designed with theming in mind and will |
| 25 | + automatically display the current application theme. |
| 26 | +- **Use any tech stack:** The library ships as a set of web components, meaning developers can use |
| 27 | + the toolkit no matter what tech stack (React, Vue, Svelte, etc.) their extension is built with. |
| 28 | +- **Accessible out of the box:** All components ship with web standard compliant ARIA labels and |
| 29 | + keyboard navigation. |
| 30 | + |
| 31 | +This repository contains three packages: |
| 32 | + |
| 33 | +- [`@jupyter-notebook/web-components`](https://github.com/jupyterlab-contrib/jupyter-ui-toolkit/tree/main/packages/components/): |
| 34 | + The main package defining the web components. |
| 35 | +- [`@jupyter-notebook/react-components`](https://github.com/jupyterlab-contrib/jupyter-ui-toolkit/tree/main/packages/react-components): |
| 36 | + Wrapped the web components to use them with [React](https://reactjs.org). |
| 37 | +- [`jupyter-ui-demo`](https://github.com/jupyterlab-contrib/jupyter-ui-toolkit/tree/main/packages/lab-example): |
| 38 | + Unpublished JupyterLab extension to demonstrate the integration of the toolkit. |
| 39 | + |
| 40 | +Those features are brought through the [Fast Design](https://www.fast.design/). And it is inspired |
| 41 | +by the [WebView toolkit for Visual Studio Code](https://github.com/microsoft/vscode-webview-ui-toolkit) |
| 42 | +as example for creating a customized toolkit. |
25 | 43 |
|
26 | 44 | ## Release
|
27 | 45 |
|
28 |
| -The UI Toolkit is currently in a proof of concept. Track progress towards 1.0 [here](https://github.com/jupyterlab-contrib/jupyter-ui-toolkit/issues?q=is%3Aopen+is%3Aissue+milestone%3Av1.0). Styles and API |
29 |
| -are not guarantee between minor versions prior to v1.0.0. |
| 46 | +The UI Toolkit is currently in a proof of concept. Track progress towards 1.0 [here](https://github.com/jupyterlab-contrib/jupyter-ui-toolkit/issues?q=is%3Aopen+is%3Aissue+milestone%3Av1.0). |
| 47 | +Styles and API are not guarantee between minor versions prior to v1.0.0. |
30 | 48 |
|
31 | 49 | ## Getting started
|
32 | 50 |
|
33 |
| -<!-- |
34 |
| -Follow the [Getting Started Guide](./docs/getting-started.md). |
| 51 | +You will need to install `yarn` (for example with `npm install --global yarn`). |
| 52 | + |
| 53 | +To build the components packages, execute: |
| 54 | + |
| 55 | +```sh |
| 56 | +yarn install |
| 57 | +yarn build |
| 58 | +``` |
35 | 59 |
|
36 |
| -If you already have a webview-based extension, you can install the toolkit with the following command: |
| 60 | +Then to interactively test or develop web components: |
37 | 61 |
|
| 62 | +```sh |
| 63 | +cd packages/components |
| 64 | +yarn start |
38 | 65 | ```
|
39 |
| -npm install --save @vscode/webview-ui-toolkit |
| 66 | + |
| 67 | +### JupyterLab demo extension |
| 68 | + |
| 69 | +To test locally the JupyterLab demo extension, using `conda` package manager: |
| 70 | + |
| 71 | +```sh |
| 72 | +conda create -n jupyter-toolkit -c conda-forge -y nodejs yarn jupyterlab=3 |
| 73 | +conda activate jupyter-toolkit |
| 74 | +yarn install |
| 75 | +yarn build |
| 76 | +pip install -e . |
| 77 | +jupyter labextension develop --overwrite . |
40 | 78 | ```
|
41 |
| ---> |
42 | 79 |
|
43 | 80 | ## Documentation
|
44 | 81 |
|
45 | 82 | Further documentation can be found in the following places:
|
46 | 83 |
|
47 |
| -- [Component Docs](./packages/components/docs/components.md) |
| 84 | +- [Component Docs](https://github.com/jupyterlab-contrib/jupyter-ui-toolkit/tree/main/packages/components/docs/components.md) |
48 | 85 | - [Storybook (Interactive Component Sandbox)](https://jupyterlab-contrib.github.io/jupyter-ui-toolkit/)
|
49 |
| -- [Toolkit Extension Samples](./packages/lab-example) |
| 86 | +- [Toolkit Extension Samples](https://github.com/jupyterlab-contrib/jupyter-ui-toolkit/tree/main/packages/lab-example): |
| 87 | + [Try online](https://mybinder.org/v2/gh/jupyterlab-contrib/jupyter-ui-toolkit/main) |
50 | 88 |
|
51 | 89 | ## Contributing
|
52 | 90 |
|
53 |
| -See the [contributing](./CONTRIBUTING.md) documentation. |
| 91 | +See the [contributing](https://github.com/jupyterlab-contrib/jupyter-ui-toolkit/tree/main/CONTRIBUTING.md) documentation. |
0 commit comments