vegafusion-jupyter


Namevegafusion-jupyter JSON
Version 1.6.8 PyPI version JSON
download
home_pagehttps://vegafusion.io
SummaryAltair Jupyter Widget library that relies on VegaFusion for serverside calculations
upload_time2024-05-07 16:08:24
maintainerNone
docs_urlNone
authorJon Mease
requires_python>=3.7
licenseBSD-3-Clause
keywords jupyter widgets ipython
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # VegaFusion Jupyter
This directory contains the `vegafusion-jupyter` package. For documentation on using this package to display Altair visualizations powered by VegaFusion in Jupyter contexts, see https://vegafusion.io.

The content below was autogenerated by Jupyter Widget cookiecutter
---
# vegafusion-jupyter

[![Build Status](https://travis-ci.org/jonmmease/vegafusion.svg?branch=master)](https://travis-ci.org/jonmmease/vegafusion_jupyter)
[![codecov](https://codecov.io/gh/jonmmease/vegafusion/branch/master/graph/badge.svg)](https://codecov.io/gh/jonmmease/vegafusion)


Altair Jupyter Widget library that relies on VegaFusion for serverside calculations

## Installation

You can install using `pip`:

```bash
pip install vegafusion_jupyter
```

If you are using Jupyter Notebook 5.2 or earlier, you may also need to enable
the nbextension:
```bash
jupyter nbextension enable --py [--sys-prefix|--user|--system] vegafusion_jupyter
```

## Development Installation

Create a dev environment:
```bash
conda create -n vegafusion_jupyter-dev -c conda-forge nodejs yarn python jupyterlab
conda activate vegafusion_jupyter-dev
```

Install the python. This will also build the TS package.
```bash
pip install -e ".[test, examples]"
```

When developing your extensions, you need to manually enable your extensions with the
notebook / lab frontend. For lab, this is done by the command:

```
jupyter labextension develop --overwrite .
yarn run build
```

For classic notebook, you need to run:

```
jupyter nbextension install --sys-prefix --symlink --overwrite --py vegafusion_jupyter
jupyter nbextension enable --sys-prefix --py vegafusion_jupyter
```

Note that the `--symlink` flag doesn't work on Windows, so you will here have to run
the `install` command every time that you rebuild your extension. For certain installations
you might also need another flag instead of `--sys-prefix`, but we won't cover the meaning
of those flags here.

### How to see your changes
#### Typescript:
If you use JupyterLab to develop then 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 widget.

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

After a change wait for the build to finish and then refresh your browser and the changes should take effect.

#### Python:
If you make a change to the python code then you will need to restart the notebook kernel to have it take effect.

            

Raw data

            {
    "_id": null,
    "home_page": "https://vegafusion.io",
    "name": "vegafusion-jupyter",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "Jupyter, Widgets, IPython",
    "author": "Jon Mease",
    "author_email": "jonmmease@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/36/9a/cc912b4c2f4930b79e9fdd002ce4da5eb7e22cfed3d94e246b0d48d7f0a9/vegafusion_jupyter-1.6.8.tar.gz",
    "platform": "Linux",
    "description": "# VegaFusion Jupyter\nThis directory contains the `vegafusion-jupyter` package. For documentation on using this package to display Altair visualizations powered by VegaFusion in Jupyter contexts, see https://vegafusion.io.\n\nThe content below was autogenerated by Jupyter Widget cookiecutter\n---\n# vegafusion-jupyter\n\n[![Build Status](https://travis-ci.org/jonmmease/vegafusion.svg?branch=master)](https://travis-ci.org/jonmmease/vegafusion_jupyter)\n[![codecov](https://codecov.io/gh/jonmmease/vegafusion/branch/master/graph/badge.svg)](https://codecov.io/gh/jonmmease/vegafusion)\n\n\nAltair Jupyter Widget library that relies on VegaFusion for serverside calculations\n\n## Installation\n\nYou can install using `pip`:\n\n```bash\npip install vegafusion_jupyter\n```\n\nIf you are using Jupyter Notebook 5.2 or earlier, you may also need to enable\nthe nbextension:\n```bash\njupyter nbextension enable --py [--sys-prefix|--user|--system] vegafusion_jupyter\n```\n\n## Development Installation\n\nCreate a dev environment:\n```bash\nconda create -n vegafusion_jupyter-dev -c conda-forge nodejs yarn python jupyterlab\nconda activate vegafusion_jupyter-dev\n```\n\nInstall the python. This will also build the TS package.\n```bash\npip install -e \".[test, examples]\"\n```\n\nWhen developing your extensions, you need to manually enable your extensions with the\nnotebook / lab frontend. For lab, this is done by the command:\n\n```\njupyter labextension develop --overwrite .\nyarn run build\n```\n\nFor classic notebook, you need to run:\n\n```\njupyter nbextension install --sys-prefix --symlink --overwrite --py vegafusion_jupyter\njupyter nbextension enable --sys-prefix --py vegafusion_jupyter\n```\n\nNote that the `--symlink` flag doesn't work on Windows, so you will here have to run\nthe `install` command every time that you rebuild your extension. For certain installations\nyou might also need another flag instead of `--sys-prefix`, but we won't cover the meaning\nof those flags here.\n\n### How to see your changes\n#### Typescript:\nIf you use JupyterLab to develop then you can watch the source directory and run JupyterLab at the same time in different\nterminals to watch for changes in the extension's source and automatically rebuild the widget.\n\n```bash\n# Watch the source directory in one terminal, automatically rebuilding when needed\nyarn run watch\n# Run JupyterLab in another terminal\njupyter lab\n```\n\nAfter a change wait for the build to finish and then refresh your browser and the changes should take effect.\n\n#### Python:\nIf you make a change to the python code then you will need to restart the notebook kernel to have it take effect.\n",
    "bugtrack_url": null,
    "license": "BSD-3-Clause",
    "summary": "Altair Jupyter Widget library that relies on VegaFusion for serverside calculations",
    "version": "1.6.8",
    "project_urls": {
        "Homepage": "https://vegafusion.io"
    },
    "split_keywords": [
        "jupyter",
        " widgets",
        " ipython"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e3eb1df92fe170b2c1fda0264e3c874cb658e8f30b394c58002df35353f2f74d",
                "md5": "1b383281ebebc11b6b805cb9e28e80ee",
                "sha256": "666d0b9d132455c17dd1156e2b74b9f56a336d629ab97b91b3c707decb5044d0"
            },
            "downloads": -1,
            "filename": "vegafusion_jupyter-1.6.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1b383281ebebc11b6b805cb9e28e80ee",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 9818416,
            "upload_time": "2024-05-07T16:08:21",
            "upload_time_iso_8601": "2024-05-07T16:08:21.333077Z",
            "url": "https://files.pythonhosted.org/packages/e3/eb/1df92fe170b2c1fda0264e3c874cb658e8f30b394c58002df35353f2f74d/vegafusion_jupyter-1.6.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "369acc912b4c2f4930b79e9fdd002ce4da5eb7e22cfed3d94e246b0d48d7f0a9",
                "md5": "fe37b0d4b59e16f3654542e7f3df4a63",
                "sha256": "d625a8efdfab3f157af6adbf0a25faa1206752909425949cd803122211649da2"
            },
            "downloads": -1,
            "filename": "vegafusion_jupyter-1.6.8.tar.gz",
            "has_sig": false,
            "md5_digest": "fe37b0d4b59e16f3654542e7f3df4a63",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 4893073,
            "upload_time": "2024-05-07T16:08:24",
            "upload_time_iso_8601": "2024-05-07T16:08:24.945478Z",
            "url": "https://files.pythonhosted.org/packages/36/9a/cc912b4c2f4930b79e9fdd002ce4da5eb7e22cfed3d94e246b0d48d7f0a9/vegafusion_jupyter-1.6.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-07 16:08:24",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "vegafusion-jupyter"
}
        
Elapsed time: 0.45352s