Skip to content

Add installation section #47

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 26 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,26 +52,22 @@ as example for creating a customized toolkit.
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 are not guarantee between minor versions prior to v1.0.0.

## Getting started
## Installation

### From NPM

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

To build the components packages, execute:
To install the `web-components` library, use either `npm` or `yarn` as follows:

```sh
yarn install
yarn build
```shell
npm install --save @jupyter-notebook/web-components
```

Then to interactively test or develop web components:

```sh
cd packages/components
yarn start
```shell
yarn add @jupyter-notebook/web-components
```

> If you need the React components of the toolkit, you need to install `@jupyter-notebook/react-components`.
### From CDN

A pre-bundled script that contains all APIs needed to use Jupyter UI Toolkit is available on CDN. You can use this script by adding [`type="module"`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) to the script element and then importing from the CDN.
Expand All @@ -88,6 +84,24 @@ A pre-bundled script that contains all APIs needed to use Jupyter UI Toolkit is

The above CDN location points to the latest release of `@jupyter-notebook/web-components`. It is advised that when you deploy your site or app, you import the specific version you have developed and tested with.

## Contributing

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

To build the components packages, execute:

```sh
yarn install
yarn build
```

Then to interactively test or develop web components:

```sh
cd packages/components
yarn start
```

### JupyterLab demo extension

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