jupyterlab-blockly


Namejupyterlab-blockly JSON
Version 0.2.1 PyPI version JSON
download
home_pagehttps://github.com/quantstack/jupyterlab-blockly
SummaryBlockly extension for JupyterLab.
upload_time2022-09-07 21:06:13
maintainer
docs_urlNone
authorquantstack
requires_python>=3.7
licenseBSD-3-Clause
keywords jupyter jupyterlab jupyterlab3
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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)


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 == 3.4

## Install

To install the extension, execute:

```bash
conda install -c conda-forge 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
```

## 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 pre-commit yarn jupyterlab==3.4 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 .
# Link your development version of the extension with JupyterLab
jupyter labextension develop . --overwrite
# Rebuild extension Typescript source after making changes
jlpm run 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 run 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 run 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)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/quantstack/jupyterlab-blockly",
    "name": "jupyterlab-blockly",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "Jupyter,JupyterLab,JupyterLab3",
    "author": "quantstack",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/5e/15/8f157cb97761936aa10d77bbb205ae92f7a6318e20b9db591f70af96bec2/jupyterlab_blockly-0.2.1.tar.gz",
    "platform": "Linux",
    "description": "# jupyterlab_blockly\n\n[![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)\n[![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)\n[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/quantstack/jupyterlab-blockly/main?urlpath=lab)\n\n\nBlockly extension for JupyterLab.\n\n## Blockly\n\nBlockly is a library from Google for building beginner-friendly block-based programming languages.\n\nDocs: https://developers.google.com/blockly/guides/overview\nRepo: https://github.com/google/blockly\n\n## Requirements\n\n- JupyterLab == 3.4\n\n## Install\n\nTo install the extension, execute:\n\n```bash\nconda install -c conda-forge jupyterlab-blockly\n```\n\n#### Kernels\n\n- ipykernel\n- xeus-python\n- xeus-lua\n- [JavaScript](https://github.com/n-riesco/ijavascript#installation)\n- [JavaScript](https://github.com/yunabe/tslab)\n\n## Uninstall\n\nTo remove the extension, execute:\n\n```bash\nconda uninstall -c conda-forge jupyterlab-blockly\n```\n\n## Contributing\n\n### Development install\n\nNote: You will need NodeJS to build the extension package.\n\nThe `jlpm` command is JupyterLab's pinned version of\n[yarn](https://yarnpkg.com/) that is installed with JupyterLab. You may use\n`yarn` or `npm` in lieu of `jlpm` below.\n\n```bash\nmicromamba create -n blockly -c conda-forge python nodejs pre-commit yarn jupyterlab==3.4 jupyter-packaging jupyterlab-language-pack-es-ES jupyterlab-language-pack-fr-FR ipykernel xeus-python xeus-lua\nmicromamba activate blockly\n# Clone the repo to your local environment\n# Change directory to the jupyterlab_blockly directory\n# Installing pre-commit to run command when adding commits\npre-commit install\n# Install package in development mode\npip install -e .\n# Link your development version of the extension with JupyterLab\njupyter labextension develop . --overwrite\n# Rebuild extension Typescript source after making changes\njlpm run build\n```\n\nYou 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.\n\n```bash\n# Watch the source directory in one terminal, automatically rebuilding when needed\njlpm run watch\n# Run JupyterLab in another terminal\njupyter lab\n```\n\nWith 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).\n\nBy default, the `jlpm run 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:\n\n```bash\njupyter lab build --minimize=False\n```\n\n### Development uninstall\n\n```bash\npip uninstall jupyterlab_blockly\n```\n\nIn development mode, you will also need to remove the symlink created by `jupyter labextension develop`\ncommand. To find its location, you can run `jupyter labextension list` to figure out where the `labextensions`\nfolder is located. Then you can remove the symlink named `jupyterlab-blockly` within that folder.\n\n### Packaging the extension\n\nSee [RELEASE](RELEASE.md)\n",
    "bugtrack_url": null,
    "license": "BSD-3-Clause",
    "summary": "Blockly extension for JupyterLab.",
    "version": "0.2.1",
    "project_urls": {
        "Homepage": "https://github.com/quantstack/jupyterlab-blockly"
    },
    "split_keywords": [
        "jupyter",
        "jupyterlab",
        "jupyterlab3"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8eb0c18a0552e62d96fc615d448ddedaf6e375063133513479862142d76d388c",
                "md5": "5e5d039e6a6f0dbe5e6d11d284a6fd6a",
                "sha256": "2911d3c935381589117081c8734676a60e7be301c828d41044391d5d9fe6194d"
            },
            "downloads": -1,
            "filename": "jupyterlab_blockly-0.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5e5d039e6a6f0dbe5e6d11d284a6fd6a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 2056295,
            "upload_time": "2022-09-07T21:06:11",
            "upload_time_iso_8601": "2022-09-07T21:06:11.423713Z",
            "url": "https://files.pythonhosted.org/packages/8e/b0/c18a0552e62d96fc615d448ddedaf6e375063133513479862142d76d388c/jupyterlab_blockly-0.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5e158f157cb97761936aa10d77bbb205ae92f7a6318e20b9db591f70af96bec2",
                "md5": "d40050c91d3d92086d61b29177644e4a",
                "sha256": "f8cb9ae50969326773373e3282d04439250aa1299b09d96513203d99f8c5906b"
            },
            "downloads": -1,
            "filename": "jupyterlab_blockly-0.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "d40050c91d3d92086d61b29177644e4a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 3078893,
            "upload_time": "2022-09-07T21:06:13",
            "upload_time_iso_8601": "2022-09-07T21:06:13.831499Z",
            "url": "https://files.pythonhosted.org/packages/5e/15/8f157cb97761936aa10d77bbb205ae92f7a6318e20b9db591f70af96bec2/jupyterlab_blockly-0.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-09-07 21:06:13",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "quantstack",
    "github_project": "jupyterlab-blockly",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "jupyterlab-blockly"
}
        
Elapsed time: 0.09416s