altair-data-server


Namealtair-data-server JSON
Version 0.4.1 PyPI version JSON
download
home_pagehttp://github.com/altair-viz/altair_data_server/
SummaryA background data server for Altair charts.
upload_time2019-12-28 15:09:21
maintainer
docs_urlNone
authorJake VanderPlas
requires_python>=3.6
licenseBSD 3-clause
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            # Altair data server

[![build status](http://img.shields.io/travis/altair-viz/altair_data_server/master.svg?style=flat)](https://travis-ci.org/altair-viz/altair_data_server)
[![github actions](https://github.com/altair-viz/altair_data_server/workflows/build/badge.svg)](https://github.com/altair-viz/altair_data_server/actions?query=workflow%3Abuild)
[![github actions](https://github.com/altair-viz/altair_data_server/workflows/lint/badge.svg)](https://github.com/altair-viz/altair_data_server/actions?query=workflow%3Alint)
[![code style black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/altair-viz/altair_data_server/master?urlpath=lab/tree/AltairDataServer.ipynb)
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/altair-viz/altair_data_server/blob/master/AltairDataServer.ipynb)


This is a data transformer plugin for [Altair](http://altair-viz.github.io)
that transparently serves data for Altair charts via a background WSGI server.

Note that charts will only render as long as your Python session is active.

The data server is a good option when you'll be **generating multiple charts as
part of an exploration of data**.

## Usage

First install the package and its dependencies:

```
$ pip install altair_data_server
```

Next import altair and enable the data server:

```python
import altair as alt
alt.data_transformers.enable('data_server')
```
Now when you create an Altair chart, the data will be served in the background
rather than embedded in the chart specification.

Once you are finished with exploration and want to generate charts that
will have their data fully embedded in the notebook, you can restore the
default data transformer:

```python
alt.data_transformers.enable('default')
```

and carry on from there.

## Remote Systems
Remotely-hosted notebooks (like JupyterHub or Binder) usually do not allow the end
user to access arbitrary ports. To enable users to work on that setup, make sure
[jupyter-server-proxy](https://github.com/jupyterhub/jupyter-server-proxy) is
installed on the jupyter server, and use the proxied data server transformer:

```python
alt.data_transformers.enable('data_server_proxied')
```

## Example

[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/altair-viz/altair_data_server/master?urlpath=lab/tree/AltairDataServer.ipynb)
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/altair-viz/altair_data_server/blob/master/AltairDataServer.ipynb)

You can see this in action, as well as read some of the motivation for this
plugin, in the example notebook: [AltairDataServer.ipynb](AltairDataServer.ipynb).
Click the Binder or Colab links above to try it out in your browser.

## Known Issues

Because [jupyter-server-proxy](https://github.com/jupyterhub/jupyter-server-proxy)
requires at least Python 3.5, the methods described in
[Remote Systems](#remote-systems) do not work do not work for older versions of Python.



            

Raw data

            {
    "_id": null,
    "home_page": "http://github.com/altair-viz/altair_data_server/",
    "name": "altair-data-server",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "",
    "author": "Jake VanderPlas",
    "author_email": "jakevdp@google.com",
    "download_url": "https://files.pythonhosted.org/packages/32/24/9f6a6c755fdaf5307e57222f64af85882c6a5e193a0c5537a456058748bc/altair_data_server-0.4.1.tar.gz",
    "platform": "",
    "description": "# Altair data server\n\n[![build status](http://img.shields.io/travis/altair-viz/altair_data_server/master.svg?style=flat)](https://travis-ci.org/altair-viz/altair_data_server)\n[![github actions](https://github.com/altair-viz/altair_data_server/workflows/build/badge.svg)](https://github.com/altair-viz/altair_data_server/actions?query=workflow%3Abuild)\n[![github actions](https://github.com/altair-viz/altair_data_server/workflows/lint/badge.svg)](https://github.com/altair-viz/altair_data_server/actions?query=workflow%3Alint)\n[![code style black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/altair-viz/altair_data_server/master?urlpath=lab/tree/AltairDataServer.ipynb)\n[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/altair-viz/altair_data_server/blob/master/AltairDataServer.ipynb)\n\n\nThis is a data transformer plugin for [Altair](http://altair-viz.github.io)\nthat transparently serves data for Altair charts via a background WSGI server.\n\nNote that charts will only render as long as your Python session is active.\n\nThe data server is a good option when you'll be **generating multiple charts as\npart of an exploration of data**.\n\n## Usage\n\nFirst install the package and its dependencies:\n\n```\n$ pip install altair_data_server\n```\n\nNext import altair and enable the data server:\n\n```python\nimport altair as alt\nalt.data_transformers.enable('data_server')\n```\nNow when you create an Altair chart, the data will be served in the background\nrather than embedded in the chart specification.\n\nOnce you are finished with exploration and want to generate charts that\nwill have their data fully embedded in the notebook, you can restore the\ndefault data transformer:\n\n```python\nalt.data_transformers.enable('default')\n```\n\nand carry on from there.\n\n## Remote Systems\nRemotely-hosted notebooks (like JupyterHub or Binder) usually do not allow the end\nuser to access arbitrary ports. To enable users to work on that setup, make sure\n[jupyter-server-proxy](https://github.com/jupyterhub/jupyter-server-proxy) is\ninstalled on the jupyter server, and use the proxied data server transformer:\n\n```python\nalt.data_transformers.enable('data_server_proxied')\n```\n\n## Example\n\n[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/altair-viz/altair_data_server/master?urlpath=lab/tree/AltairDataServer.ipynb)\n[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/altair-viz/altair_data_server/blob/master/AltairDataServer.ipynb)\n\nYou can see this in action, as well as read some of the motivation for this\nplugin, in the example notebook: [AltairDataServer.ipynb](AltairDataServer.ipynb).\nClick the Binder or Colab links above to try it out in your browser.\n\n## Known Issues\n\nBecause [jupyter-server-proxy](https://github.com/jupyterhub/jupyter-server-proxy)\nrequires at least Python 3.5, the methods described in\n[Remote Systems](#remote-systems) do not work do not work for older versions of Python.\n\n\n",
    "bugtrack_url": null,
    "license": "BSD 3-clause",
    "summary": "A background data server for Altair charts.",
    "version": "0.4.1",
    "project_urls": {
        "Download": "http://github.com/altair-viz/altair_data_server/",
        "Homepage": "http://github.com/altair-viz/altair_data_server/"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e7a30e7651adce146c17eea516ffcb530f7ee769671e59395bc10838eca827db",
                "md5": "64735172b7dc15af7b754ecb2184be32",
                "sha256": "bd1414d69dbfec22c804b34210491d7313e5edc7736504dfb8c405ded0e2015b"
            },
            "downloads": -1,
            "filename": "altair_data_server-0.4.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "64735172b7dc15af7b754ecb2184be32",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 12613,
            "upload_time": "2019-12-28T15:09:20",
            "upload_time_iso_8601": "2019-12-28T15:09:20.184822Z",
            "url": "https://files.pythonhosted.org/packages/e7/a3/0e7651adce146c17eea516ffcb530f7ee769671e59395bc10838eca827db/altair_data_server-0.4.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "32249f6a6c755fdaf5307e57222f64af85882c6a5e193a0c5537a456058748bc",
                "md5": "36f429aba034517006b83dafa63917bf",
                "sha256": "b39205a48ab2678020fc58739cb973845879ed169cb5addddc9dcbf5a69aeb2b"
            },
            "downloads": -1,
            "filename": "altair_data_server-0.4.1.tar.gz",
            "has_sig": false,
            "md5_digest": "36f429aba034517006b83dafa63917bf",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 12680,
            "upload_time": "2019-12-28T15:09:21",
            "upload_time_iso_8601": "2019-12-28T15:09:21.805258Z",
            "url": "https://files.pythonhosted.org/packages/32/24/9f6a6c755fdaf5307e57222f64af85882c6a5e193a0c5537a456058748bc/altair_data_server-0.4.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2019-12-28 15:09:21",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "altair-viz",
    "github_project": "altair_data_server",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "altair-data-server"
}
        
Elapsed time: 0.33973s