jupyterlab-stickyland


Namejupyterlab-stickyland JSON
Version 0.2.4 PyPI version JSON
download
home_pagehttps://github.com/xiaohk/stickyland
SummaryBreak free from the linear presentation of Jupyter Notebooks with sticky cells!
upload_time2023-12-24 03:19:17
maintainer
docs_urlNone
authorJay Wang, Katie Dai
requires_python>=3.6
licenseBSD-3-Clause
keywords jupyter jupyterlab jupyterlab3
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # StickyLand

<!-- [![Lite](https://gist.githubusercontent.com/xiaohk/9b9f7c8fa162b2c3bc3251a5c9a799b2/raw/c3438b4c49d89e4c367f581520ddd4cf8dac0f41/lite-badge-launch-small.svg)](https://xiaohk.github.io/stickyland/) -->

[![Github Actions Status](https://github.com/xiaohk/stickyland/workflows/Build/badge.svg)](https://github.com/xiaohk/stickyland/actions/workflows/build.yml)
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/xiaohk/stickyland/master?urlpath=lab/tree/examples/example-adult.ipynb)
[![Lite](https://gist.githubusercontent.com/xiaohk/9b9f7c8fa162b2c3bc3251a5c9a799b2/raw/a7fca1d0a2d62c2b49f60c0217dffbd0fe404471/lite-badge-launch-small.svg)](https://xiaohk.github.io/stickyland/)
[![pypi](https://img.shields.io/pypi/v/jupyterlab-stickyland?color=blue)](https://pypi.python.org/pypi/jupyterlab-stickyland)
[![license](https://img.shields.io/badge/License-BSD--3-orange)](https://github.com/xiaohk/stickyland/blob/master/LICENSE)
[![arxiv badge](https://img.shields.io/badge/arXiv-2202.11086-red)](https://arxiv.org/abs/2202.11086)
[![DOI:10.1145/3491101.3519653](https://img.shields.io/badge/DOI-10.1145/3491101.3519653-blue)](https://doi.org/10.1145/3491101.3519653)

Break the linear presentation of Jupyter Notebooks with sticky cells!

<table>
  <tr>
    <td colspan="3"><img src='https://i.imgur.com/FtmHafo.png'></td>
  </tr>
  <tr></tr>
  <tr>
    <td><a href="https://youtu.be/eMlTtloGyho">👨🏻‍🏫 Talk</a></td>
    <td><a href="https://youtu.be/OKaPmEBzEX0">📺 Video</a></td>
    <td><a href="https://arxiv.org/abs/2202.11086">📖 "StickyLand: breaking the linear presentation of computational Notebooks"</a></td>
  </tr>
</table>

## Live Demo

You can try StickyLand directly in your browser without installing anything:

|                                                                                             Fast loading                                                                                             |                                                                 Full functionality                                                                  |
| :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------: |
| [![Lite](https://gist.githubusercontent.com/xiaohk/9b9f7c8fa162b2c3bc3251a5c9a799b2/raw/a7fca1d0a2d62c2b49f60c0217dffbd0fe404471/lite-badge-launch-small.svg)](https://xiaohk.github.io/stickyland/) | [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/xiaohk/stickyland/master?urlpath=lab/tree/examples/example-adult.ipynb) |

## Install

First, you need to install JupyterLab. Then you can install StickyLand with `pip`:

```bash
pip install stickyland
```

> **Note**
> StickyLand only supports `JupyterLab < 4`. In June 2023, `JupyterLab 4.0` was released with a lot of breaking changes. I will update StickyLand to support `JupyterLab 4.0` when the official extension documentation is more polished. Any contribution to the [`lab4`](https://github.com/xiaohk/stickyland/tree/lab4) branch is greatly appreciated!

## Features

![feature-gif](https://user-images.githubusercontent.com/15007159/155863418-c4e616fa-a003-4d6c-ba12-74cdb22d9bf4.gif)

<details>
  <summary>Show details</summary>
  <table>
    <tr></tr>
    <tr></tr>
    <tr><td style="text-align:center"><b>Drag and drop to create sticky cells</b></td><td><b>Create sticky code and markdown from scratch</b></td></tr>
    <tr></tr>
    <tr><th><video src='https://user-images.githubusercontent.com/15007159/155241848-298e593e-de7b-4d6e-be48-fd738c2586e6.mp4' width=180></video></th><th><video src='https://user-images.githubusercontent.com/15007159/155241844-4a5a910d-3cdf-48d2-9c6d-acb9e23fe6a4.mp4' width=180></video></th></tr>
    <tr></tr>
    <tr><td><b>Automatically execute sticky cells</b></td><td><b>Use floating cells to create interactive dashboards</b></td></tr>
    <tr></tr>
    <tr><td style="width:20px"><video src='https://user-images.githubusercontent.com/15007159/155242259-925ca910-f1d4-4b8d-b085-5120f1a21da6.mp4' width=180></video></td><td><video src='https://user-images.githubusercontent.com/15007159/155243403-30625bd4-611c-4096-934d-7219fd6be8cb.mp4' width=180></video></td></tr>
  </table>

</details>

---

With multiple floating cells, users can create a full-fledged interactive dashboard. For example, a machine learning engineer can build an ML Error Analysis Dashboard (shown below) through simple drag-and-drop.

<table>
  <tr><td><img src="https://i.imgur.com/KN51RQV.png"></td></tr>
  <tr></tr>
  <tr><td>The <b>ML Error Analysis Dashboard</b> consists of: <b>(A)</b> markdown text describing the dashboard, <b>(B)</b>
input field to specify a feature to diagnose, <b>(C)</b> auto-run chart showing the distribution of the specified feature, <b>(D)</b> second
input field to further specify the range within the feature to diagnose, <b>(E)</b> auto-run table displaying all samples that meet the
criteria, <b>(F)</b> auto-run <a href="https://github.com/interpretml/interpret/">visualization</a> explaining how the ML model makes decision on these samples, <b>(G)</b> <a href="https://github.com/interpretml/gam-changer/">interactive tool</a> allowing
the ML engineer to fix the ML model by editing its parameters based on their error analysis.</td></tr>
</table>

## Development

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
# Clone the repo to your local environment
# Change directory to the jupyterlab_stickyland directory
# 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
```

## Citation

```bibTeX
@inproceedings{wangStickyLandBreakingLinear2022,
  title = {{{StickyLand}}: {{Breaking}} the {{Linear Presentation}} of {{Computational Notebooks}}},
  shorttitle = {{{StickyLand}}},
  booktitle = {Extended {{Abstracts}} of the 2022 {{CHI Conference}} on {{Human Factors}} in {{Computing Systems}}},
  author = {Wang, Zijie J. and Dai, Katie and Edwards, W. Keith},
  year = {2022},
  publisher = {{ACM}}
}
```

## License

The software is available under the [BSD-3-Clause License](https://github.com/xiaohk/stickyland/blob/master/LICENSE).

## Contact

If you have any questions, feel free to [open an issue](https://github.com/xiaohk/stickyland/issues/new) or contact [Jay Wang](https://zijie.wang).

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/xiaohk/stickyland",
    "name": "jupyterlab-stickyland",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "Jupyter,JupyterLab,JupyterLab3",
    "author": "Jay Wang, Katie Dai",
    "author_email": "jay@zijie.wang, kdai7@gatech.edu",
    "download_url": "https://files.pythonhosted.org/packages/16/42/7ea58235a1dcb0536f8827051f2f24d7d919992dd2350426ce84d9900ead/jupyterlab_stickyland-0.2.4.tar.gz",
    "platform": "Linux",
    "description": "# StickyLand\n\n<!-- [![Lite](https://gist.githubusercontent.com/xiaohk/9b9f7c8fa162b2c3bc3251a5c9a799b2/raw/c3438b4c49d89e4c367f581520ddd4cf8dac0f41/lite-badge-launch-small.svg)](https://xiaohk.github.io/stickyland/) -->\n\n[![Github Actions Status](https://github.com/xiaohk/stickyland/workflows/Build/badge.svg)](https://github.com/xiaohk/stickyland/actions/workflows/build.yml)\n[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/xiaohk/stickyland/master?urlpath=lab/tree/examples/example-adult.ipynb)\n[![Lite](https://gist.githubusercontent.com/xiaohk/9b9f7c8fa162b2c3bc3251a5c9a799b2/raw/a7fca1d0a2d62c2b49f60c0217dffbd0fe404471/lite-badge-launch-small.svg)](https://xiaohk.github.io/stickyland/)\n[![pypi](https://img.shields.io/pypi/v/jupyterlab-stickyland?color=blue)](https://pypi.python.org/pypi/jupyterlab-stickyland)\n[![license](https://img.shields.io/badge/License-BSD--3-orange)](https://github.com/xiaohk/stickyland/blob/master/LICENSE)\n[![arxiv badge](https://img.shields.io/badge/arXiv-2202.11086-red)](https://arxiv.org/abs/2202.11086)\n[![DOI:10.1145/3491101.3519653](https://img.shields.io/badge/DOI-10.1145/3491101.3519653-blue)](https://doi.org/10.1145/3491101.3519653)\n\nBreak the linear presentation of Jupyter Notebooks with sticky cells!\n\n<table>\n  <tr>\n    <td colspan=\"3\"><img src='https://i.imgur.com/FtmHafo.png'></td>\n  </tr>\n  <tr></tr>\n  <tr>\n    <td><a href=\"https://youtu.be/eMlTtloGyho\">\ud83d\udc68\ud83c\udffb\u200d\ud83c\udfeb Talk</a></td>\n    <td><a href=\"https://youtu.be/OKaPmEBzEX0\">\ud83d\udcfa Video</a></td>\n    <td><a href=\"https://arxiv.org/abs/2202.11086\">\ud83d\udcd6 \"StickyLand: breaking the linear presentation of computational Notebooks\"</a></td>\n  </tr>\n</table>\n\n## Live Demo\n\nYou can try StickyLand directly in your browser without installing anything:\n\n|                                                                                             Fast loading                                                                                             |                                                                 Full functionality                                                                  |\n| :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------: |\n| [![Lite](https://gist.githubusercontent.com/xiaohk/9b9f7c8fa162b2c3bc3251a5c9a799b2/raw/a7fca1d0a2d62c2b49f60c0217dffbd0fe404471/lite-badge-launch-small.svg)](https://xiaohk.github.io/stickyland/) | [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/xiaohk/stickyland/master?urlpath=lab/tree/examples/example-adult.ipynb) |\n\n## Install\n\nFirst, you need to install JupyterLab. Then you can install StickyLand with `pip`:\n\n```bash\npip install stickyland\n```\n\n> **Note**\n> StickyLand only supports `JupyterLab < 4`. In June 2023, `JupyterLab 4.0` was released with a lot of breaking changes. I will update StickyLand to support `JupyterLab 4.0` when the official extension documentation is more polished. Any contribution to the [`lab4`](https://github.com/xiaohk/stickyland/tree/lab4) branch is greatly appreciated!\n\n## Features\n\n![feature-gif](https://user-images.githubusercontent.com/15007159/155863418-c4e616fa-a003-4d6c-ba12-74cdb22d9bf4.gif)\n\n<details>\n  <summary>Show details</summary>\n  <table>\n    <tr></tr>\n    <tr></tr>\n    <tr><td style=\"text-align:center\"><b>Drag and drop to create sticky cells</b></td><td><b>Create sticky code and markdown from scratch</b></td></tr>\n    <tr></tr>\n    <tr><th><video src='https://user-images.githubusercontent.com/15007159/155241848-298e593e-de7b-4d6e-be48-fd738c2586e6.mp4' width=180></video></th><th><video src='https://user-images.githubusercontent.com/15007159/155241844-4a5a910d-3cdf-48d2-9c6d-acb9e23fe6a4.mp4' width=180></video></th></tr>\n    <tr></tr>\n    <tr><td><b>Automatically execute sticky cells</b></td><td><b>Use floating cells to create interactive dashboards</b></td></tr>\n    <tr></tr>\n    <tr><td style=\"width:20px\"><video src='https://user-images.githubusercontent.com/15007159/155242259-925ca910-f1d4-4b8d-b085-5120f1a21da6.mp4' width=180></video></td><td><video src='https://user-images.githubusercontent.com/15007159/155243403-30625bd4-611c-4096-934d-7219fd6be8cb.mp4' width=180></video></td></tr>\n  </table>\n\n</details>\n\n---\n\nWith multiple floating cells, users can create a full-fledged interactive dashboard. For example, a machine learning engineer can build an ML Error Analysis Dashboard (shown below) through simple drag-and-drop.\n\n<table>\n  <tr><td><img src=\"https://i.imgur.com/KN51RQV.png\"></td></tr>\n  <tr></tr>\n  <tr><td>The <b>ML Error Analysis Dashboard</b> consists of: <b>(A)</b> markdown text describing the dashboard, <b>(B)</b>\ninput field to specify a feature to diagnose, <b>(C)</b> auto-run chart showing the distribution of the specified feature, <b>(D)</b> second\ninput field to further specify the range within the feature to diagnose, <b>(E)</b> auto-run table displaying all samples that meet the\ncriteria, <b>(F)</b> auto-run <a href=\"https://github.com/interpretml/interpret/\">visualization</a> explaining how the ML model makes decision on these samples, <b>(G)</b> <a href=\"https://github.com/interpretml/gam-changer/\">interactive tool</a> allowing\nthe ML engineer to fix the ML model by editing its parameters based on their error analysis.</td></tr>\n</table>\n\n## Development\n\nYou will need NodeJS to build the extension package.\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\n# Clone the repo to your local environment\n# Change directory to the jupyterlab_stickyland directory\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## Citation\n\n```bibTeX\n@inproceedings{wangStickyLandBreakingLinear2022,\n  title = {{{StickyLand}}: {{Breaking}} the {{Linear Presentation}} of {{Computational Notebooks}}},\n  shorttitle = {{{StickyLand}}},\n  booktitle = {Extended {{Abstracts}} of the 2022 {{CHI Conference}} on {{Human Factors}} in {{Computing Systems}}},\n  author = {Wang, Zijie J. and Dai, Katie and Edwards, W. Keith},\n  year = {2022},\n  publisher = {{ACM}}\n}\n```\n\n## License\n\nThe software is available under the [BSD-3-Clause License](https://github.com/xiaohk/stickyland/blob/master/LICENSE).\n\n## Contact\n\nIf you have any questions, feel free to [open an issue](https://github.com/xiaohk/stickyland/issues/new) or contact [Jay Wang](https://zijie.wang).\n",
    "bugtrack_url": null,
    "license": "BSD-3-Clause",
    "summary": "Break free from the linear presentation of Jupyter Notebooks with sticky cells!",
    "version": "0.2.4",
    "project_urls": {
        "Homepage": "https://github.com/xiaohk/stickyland"
    },
    "split_keywords": [
        "jupyter",
        "jupyterlab",
        "jupyterlab3"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "be90048d9ad282bec3013ab50ecac357c256c19c3c921dc7c615f09ce0521cc6",
                "md5": "2c3afd4a87b7e7312423efd272f1a855",
                "sha256": "46543c2d50d2e85cff25ed9917fee8ff50aafa687c37bf4f1e2d4710d6b630f5"
            },
            "downloads": -1,
            "filename": "jupyterlab_stickyland-0.2.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2c3afd4a87b7e7312423efd272f1a855",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 168485,
            "upload_time": "2023-12-24T03:19:14",
            "upload_time_iso_8601": "2023-12-24T03:19:14.862932Z",
            "url": "https://files.pythonhosted.org/packages/be/90/048d9ad282bec3013ab50ecac357c256c19c3c921dc7c615f09ce0521cc6/jupyterlab_stickyland-0.2.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "16427ea58235a1dcb0536f8827051f2f24d7d919992dd2350426ce84d9900ead",
                "md5": "8de8dd97444aa3474873d3da65e2e872",
                "sha256": "a6f5a0cb65d3705b793e6c11b36c26e643208c2cbf6a68e325980b58661fa556"
            },
            "downloads": -1,
            "filename": "jupyterlab_stickyland-0.2.4.tar.gz",
            "has_sig": false,
            "md5_digest": "8de8dd97444aa3474873d3da65e2e872",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 166265,
            "upload_time": "2023-12-24T03:19:17",
            "upload_time_iso_8601": "2023-12-24T03:19:17.074132Z",
            "url": "https://files.pythonhosted.org/packages/16/42/7ea58235a1dcb0536f8827051f2f24d7d919992dd2350426ce84d9900ead/jupyterlab_stickyland-0.2.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-24 03:19:17",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "xiaohk",
    "github_project": "stickyland",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "jupyterlab-stickyland"
}
        
Elapsed time: 0.16111s