vegafusion-jupyter


Namevegafusion-jupyter JSON
Version 1.6.7 PyPI version JSON
download
home_pagehttps://vegafusion.io
SummaryAltair Jupyter Widget library that relies on VegaFusion for serverside calculations
upload_time2024-04-11 22:04:17
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/ac/ea/89e190cf80ae18a6bbee20e881ca045c5785c63ae6ff4c2baaa063241b84/vegafusion-jupyter-1.6.7.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.7",
    "project_urls": {
        "Homepage": "https://vegafusion.io"
    },
    "split_keywords": [
        "jupyter",
        " widgets",
        " ipython"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7e045134486ae8192e6e35caf06b3626ae1033be661a674d20536d7ca9d0aebb",
                "md5": "cca7841c4d4f7cc30cc42afc8677e2cc",
                "sha256": "856ba9cd571fabdeeb0856f23162d8716e09df64227b6b97de7f7d5beaeb4c7e"
            },
            "downloads": -1,
            "filename": "vegafusion_jupyter-1.6.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "cca7841c4d4f7cc30cc42afc8677e2cc",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 9797461,
            "upload_time": "2024-04-11T22:04:14",
            "upload_time_iso_8601": "2024-04-11T22:04:14.161517Z",
            "url": "https://files.pythonhosted.org/packages/7e/04/5134486ae8192e6e35caf06b3626ae1033be661a674d20536d7ca9d0aebb/vegafusion_jupyter-1.6.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "acea89e190cf80ae18a6bbee20e881ca045c5785c63ae6ff4c2baaa063241b84",
                "md5": "b0d3387af1e40bd9f9841c4f6ee2061f",
                "sha256": "71d4c11e384a83078924974dcdbcacf0e02e59e9cbe7b95fcc837dfa3c26ad5b"
            },
            "downloads": -1,
            "filename": "vegafusion-jupyter-1.6.7.tar.gz",
            "has_sig": false,
            "md5_digest": "b0d3387af1e40bd9f9841c4f6ee2061f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 4881461,
            "upload_time": "2024-04-11T22:04:17",
            "upload_time_iso_8601": "2024-04-11T22:04:17.217129Z",
            "url": "https://files.pythonhosted.org/packages/ac/ea/89e190cf80ae18a6bbee20e881ca045c5785c63ae6ff4c2baaa063241b84/vegafusion-jupyter-1.6.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-11 22:04:17",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "vegafusion-jupyter"
}
        
Elapsed time: 0.22468s