trame-vega


Nametrame-vega JSON
Version 2.1.0 PyPI version JSON
download
home_page
SummaryVega widget for trame
upload_time2024-01-05 23:37:25
maintainer
docs_urlNone
authorKitware Inc.
requires_python
licenseBSD License
keywords python interactive web application framework
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Vega visual grammar for trame
===========================================================================

.. image:: https://github.com/Kitware/trame-vega/actions/workflows/test_and_release.yml/badge.svg
    :target: https://github.com/Kitware/trame-vega/actions/workflows/test_and_release.yml
    :alt: Test and Release

trame-vega extend trame **widgets** with a Figure component that is capable of rendering Vega grammars such as `Altair <https://altair-viz.github.io/>`__ plots.

Installing
-----------------------------------------------------------

trame-vega can be installed with `pip <https://pypi.org/project/trame-vega/>`_:

.. code-block:: bash

    pip install --upgrade trame-vega


Usage
-----------------------------------------------------------

The `Trame Tutorial <https://kitware.github.io/trame/docs/tutorial.html>`_ is the place to go to learn how to use the library and start building your own application.

The `API Reference <https://trame.readthedocs.io/en/latest/index.html>`_ documentation provides API-level documentation.


License
-----------------------------------------------------------

trame-vega is made available under the BSD-3 License. For more details, see `LICENSE <https://github.com/Kitware/trame-vega/blob/master/LICENSE>`_
This license has been chosen to match the one use by `Vega <https://github.com/vega/vega/blob/main/LICENSE>`_ and `Altair <https://github.com/altair-viz/altair/blob/master/LICENSE>`_
which are either used within that trame widget or will be use by the user to create the content for those Figures.


Community
-----------------------------------------------------------

`Trame <https://kitware.github.io/trame/>`_ | `Discussions <https://github.com/Kitware/trame/discussions>`_ | `Issues <https://github.com/Kitware/trame/issues>`_ | `RoadMap <https://github.com/Kitware/trame/projects/1>`_ | `Contact Us <https://www.kitware.com/contact-us/>`_

.. image:: https://zenodo.org/badge/410108340.svg
    :target: https://zenodo.org/badge/latestdoi/410108340


Enjoying trame?
-----------------------------------------------------------

Share your experience `with a testimonial <https://github.com/Kitware/trame/issues/18>`_ or `with a brand approval <https://github.com/Kitware/trame/issues/19>`_.


Example: Vega + Altair
-----------------------------------------------------------

The Python interface of `Altair provide examples <https://altair-viz.github.io/>`__ on how to create various visualization.

.. code-block:: python

    import altair as alt
    from vega_datasets import data

    from trame.widgets import vega

    # Generate chart
    source = data.cars()
    fig = (
        alt.Chart(source)
        .mark_circle()
        .encode(
            alt.X(alt.repeat("column"), type="quantitative"),
            alt.Y(alt.repeat("row"), type="quantitative"),
            color="Origin:N",
        )
        .properties(width=200, height=200)
        .repeat(
            row=["Horsepower", "Acceleration", "Miles_per_Gallon"],
            column=["Miles_per_Gallon", "Acceleration", "Horsepower"],
        )
        .interactive()
    )

    # Display it
    widget = vega.Figure(figure=None) # could pass fig at construction
    widget.update(fig) # or update later

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "trame-vega",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "Python,Interactive,Web,Application,Framework",
    "author": "Kitware Inc.",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/6a/7d/0301467725660d1a351fd31e3e68f2f50bf9b77f9167248e3b70ad2e2385/trame-vega-2.1.0.tar.gz",
    "platform": null,
    "description": "Vega visual grammar for trame\n===========================================================================\n\n.. image:: https://github.com/Kitware/trame-vega/actions/workflows/test_and_release.yml/badge.svg\n    :target: https://github.com/Kitware/trame-vega/actions/workflows/test_and_release.yml\n    :alt: Test and Release\n\ntrame-vega extend trame **widgets** with a Figure component that is capable of rendering Vega grammars such as `Altair <https://altair-viz.github.io/>`__ plots.\n\nInstalling\n-----------------------------------------------------------\n\ntrame-vega can be installed with `pip <https://pypi.org/project/trame-vega/>`_:\n\n.. code-block:: bash\n\n    pip install --upgrade trame-vega\n\n\nUsage\n-----------------------------------------------------------\n\nThe `Trame Tutorial <https://kitware.github.io/trame/docs/tutorial.html>`_ is the place to go to learn how to use the library and start building your own application.\n\nThe `API Reference <https://trame.readthedocs.io/en/latest/index.html>`_ documentation provides API-level documentation.\n\n\nLicense\n-----------------------------------------------------------\n\ntrame-vega is made available under the BSD-3 License. For more details, see `LICENSE <https://github.com/Kitware/trame-vega/blob/master/LICENSE>`_\nThis license has been chosen to match the one use by `Vega <https://github.com/vega/vega/blob/main/LICENSE>`_ and `Altair <https://github.com/altair-viz/altair/blob/master/LICENSE>`_\nwhich are either used within that trame widget or will be use by the user to create the content for those Figures.\n\n\nCommunity\n-----------------------------------------------------------\n\n`Trame <https://kitware.github.io/trame/>`_ | `Discussions <https://github.com/Kitware/trame/discussions>`_ | `Issues <https://github.com/Kitware/trame/issues>`_ | `RoadMap <https://github.com/Kitware/trame/projects/1>`_ | `Contact Us <https://www.kitware.com/contact-us/>`_\n\n.. image:: https://zenodo.org/badge/410108340.svg\n    :target: https://zenodo.org/badge/latestdoi/410108340\n\n\nEnjoying trame?\n-----------------------------------------------------------\n\nShare your experience `with a testimonial <https://github.com/Kitware/trame/issues/18>`_ or `with a brand approval <https://github.com/Kitware/trame/issues/19>`_.\n\n\nExample: Vega + Altair\n-----------------------------------------------------------\n\nThe Python interface of `Altair provide examples <https://altair-viz.github.io/>`__ on how to create various visualization.\n\n.. code-block:: python\n\n    import altair as alt\n    from vega_datasets import data\n\n    from trame.widgets import vega\n\n    # Generate chart\n    source = data.cars()\n    fig = (\n        alt.Chart(source)\n        .mark_circle()\n        .encode(\n            alt.X(alt.repeat(\"column\"), type=\"quantitative\"),\n            alt.Y(alt.repeat(\"row\"), type=\"quantitative\"),\n            color=\"Origin:N\",\n        )\n        .properties(width=200, height=200)\n        .repeat(\n            row=[\"Horsepower\", \"Acceleration\", \"Miles_per_Gallon\"],\n            column=[\"Miles_per_Gallon\", \"Acceleration\", \"Horsepower\"],\n        )\n        .interactive()\n    )\n\n    # Display it\n    widget = vega.Figure(figure=None) # could pass fig at construction\n    widget.update(fig) # or update later\n",
    "bugtrack_url": null,
    "license": "BSD License",
    "summary": "Vega widget for trame",
    "version": "2.1.0",
    "project_urls": null,
    "split_keywords": [
        "python",
        "interactive",
        "web",
        "application",
        "framework"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "030c384d473dd9c872b5bbfb585f595a3265a1e651721c958fdc1a285003dcf4",
                "md5": "b6a4df84cdb9ac9ef75a1b3c03cfada0",
                "sha256": "7d4b6c79f87a12f4c48fda3cfde03b2337c360e09d316f21eb64ac094725ecec"
            },
            "downloads": -1,
            "filename": "trame_vega-2.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b6a4df84cdb9ac9ef75a1b3c03cfada0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 340506,
            "upload_time": "2024-01-05T23:37:23",
            "upload_time_iso_8601": "2024-01-05T23:37:23.933539Z",
            "url": "https://files.pythonhosted.org/packages/03/0c/384d473dd9c872b5bbfb585f595a3265a1e651721c958fdc1a285003dcf4/trame_vega-2.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6a7d0301467725660d1a351fd31e3e68f2f50bf9b77f9167248e3b70ad2e2385",
                "md5": "7b03d7df671c2d0ecf06a965d3bd8dca",
                "sha256": "ac45a5ef5c5ec31b17e8f9d9c8b2b6c53b8df581499ca7110b13cf8b8425cd79"
            },
            "downloads": -1,
            "filename": "trame-vega-2.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "7b03d7df671c2d0ecf06a965d3bd8dca",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 339978,
            "upload_time": "2024-01-05T23:37:25",
            "upload_time_iso_8601": "2024-01-05T23:37:25.819154Z",
            "url": "https://files.pythonhosted.org/packages/6a/7d/0301467725660d1a351fd31e3e68f2f50bf9b77f9167248e3b70ad2e2385/trame-vega-2.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-05 23:37:25",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "trame-vega"
}
        
Elapsed time: 0.38456s