# jupyterlab-blockly

> Blockly extension for JupyterLab.

Latest version **0.3.3** (published 2024-08-26) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install jupyterlab-blockly
pnpm add jupyterlab-blockly
yarn add jupyterlab-blockly
bun add jupyterlab-blockly
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; has provenance.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.3 |
| Published | 2024-08-26 |
| First published | 2022-04-11 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 17 |
| Unpacked size | 81.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 62 |
| Author | quantstack |
| Maintainers | hbcarlos, denisacg, quantstack-bot |
| Keywords | blockly, jupyter, jupyterlab, jupyterlab-extension |

## Links

- npm: https://www.npmjs.com/package/jupyterlab-blockly
- Repository: https://github.com/QuantStack/jupyterlab-blockly
- Issues: https://github.com/QuantStack/jupyterlab-blockly/issues
- npm.io page: https://npm.io/package/jupyterlab-blockly

## Dependencies (17)

- [react](https://npm.io/package/react.md) ^18.2
- [blockly](https://npm.io/package/blockly.md) ^11.0
- [react-dom](https://npm.io/package/react-dom.md) ^18.2
- [@lumino/widgets](https://npm.io/package/@lumino/widgets.md) ^2.1
- [@jupyterlab/cells](https://npm.io/package/@jupyterlab/cells.md) ^4.2
- [@lumino/coreutils](https://npm.io/package/@lumino/coreutils.md) ^2.2
- [@lumino/messaging](https://npm.io/package/@lumino/messaging.md) ^2.0
- [@lumino/signaling](https://npm.io/package/@lumino/signaling.md) ^2.1
- [@jupyterlab/apputils](https://npm.io/package/@jupyterlab/apputils.md) ^4.2
- [@jupyterlab/services](https://npm.io/package/@jupyterlab/services.md) ^7.0
- [@blockly/field-colour](https://npm.io/package/@blockly/field-colour.md) 5.0.6
- [@jupyterlab/coreutils](https://npm.io/package/@jupyterlab/coreutils.md) ^5.6
- [@jupyterlab/codeeditor](https://npm.io/package/@jupyterlab/codeeditor.md) ^4.2
- [@jupyterlab/codemirror](https://npm.io/package/@jupyterlab/codemirror.md) ^4.2
- [@jupyterlab/rendermime](https://npm.io/package/@jupyterlab/rendermime.md) ^4.2
- [@jupyterlab/docregistry](https://npm.io/package/@jupyterlab/docregistry.md) ^4.2
- [@jupyterlab/ui-components](https://npm.io/package/@jupyterlab/ui-components.md) ^4.2

## Recent versions

- 0.3.3 (latest) — 2024-08-26
- 0.3.0-alpha.4 (next) — 2023-06-26
- 0.3.2 — 2024-08-19
- 0.3.1 — 2024-08-19
- 0.3.0 — 2024-08-19
- 0.3.0-alpha.3 — 2023-05-04
- 0.3.0-alpha.2 — 2023-04-26
- 0.3.0-alpha.1 — 2023-04-17
- 0.3.0-alpha.0 — 2023-03-15
- 0.2.1 — 2022-09-07
- 0.2.0 — 2022-09-07
- 0.1.1 — 2022-08-12
- 0.1.0 — 2022-07-26
- 0.1.0-alpha.5 — 2022-07-21
- 0.1.0-alpha.4 — 2022-07-15
- … 4 more at https://npm.io/package/jupyterlab-blockly/versions

## README

# jupyterlab-blockly

[![Github Actions Status](https://github.com/QuantStack/jupyterlab-blockly/actions/workflows/build.yml/badge.svg)](https://github.com/quantstack/jupyterlab-blockly/actions/workflows/build.yml)
[![lite-badge](https://jupyterlite.rtfd.io/en/latest/_static/badge-launch.svg)](https://jupyterlab-blockly.readthedocs.io/en/latest/lite/lab/index.html?path=example.jpblockly)
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/quantstack/jupyterlab-blockly/main?urlpath=lab/tree/examples/example.jpblockly)


Blockly extension for JupyterLab.

## Blockly

Blockly is a library from Google for building beginner-friendly block-based programming languages.

Docs: https://developers.google.com/blockly/guides/overview
Repo: https://github.com/google/blockly

## Requirements

- JupyterLab >= 4.0.0

## Install

To install the extension, execute:

```bash
conda install -c conda-forge jupyterlab-blockly
```
or 
```bash
pip install jupyterlab-blockly
```

#### Kernels

- ipykernel
- xeus-python
- xeus-lua
- [JavaScript](https://github.com/n-riesco/ijavascript#installation)
- [JavaScript](https://github.com/yunabe/tslab)

## Uninstall

To remove the extension, execute:

```bash
conda uninstall -c conda-forge jupyterlab-blockly
```
or
```bash
pip install jupyterlab-blockly
```

## Contributing

### Development install

Note: You will need NodeJS to build the extension package.

The `jlpm` command is JupyterLab's pinned version of
[yarn](https://yarnpkg.com/) that is installed with JupyterLab. You may use
`yarn` or `npm` in lieu of `jlpm` below.

```bash
micromamba create -n blockly -c conda-forge python nodejs=18 pre-commit jupyterlab jupyter-packaging jupyterlab-language-pack-es-ES jupyterlab-language-pack-fr-FR ipykernel xeus-python xeus-lua
micromamba activate blockly
# Clone the repo to your local environment
# Change directory to the jupyterlab_blockly directory
# Installing pre-commit to run command when adding commits
pre-commit install
# Install package in development mode
pip install -e ".[dev]"
# Link your development version of the extension with JupyterLab
jupyter labextension develop . --overwrite
# Rebuild extension Typescript source after making changes
jlpm build
```

You can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.

```bash
# Watch the source directory in one terminal, automatically rebuilding when needed
jlpm watch
# Run JupyterLab in another terminal
jupyter lab
```

With the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).

By default, the `jlpm build` command generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:

```bash
jupyter lab build --minimize=False
```

### Development uninstall

```bash
pip uninstall jupyterlab_blockly
```

In development mode, you will also need to remove the symlink created by `jupyter labextension develop`
command. To find its location, you can run `jupyter labextension list` to figure out where the `labextensions`
folder is located. Then you can remove the symlink named `jupyterlab-blockly` within that folder.

### Packaging the extension

See [RELEASE](RELEASE.md)

---
_Source: https://npm.io/package/jupyterlab-blockly · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
