syd


Namesyd JSON
Version 0.1.7 PyPI version JSON
download
home_pageNone
SummaryA Python package for making GUIs for data science easy.
upload_time2025-03-05 22:12:16
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseNone
keywords data-science gui interactive jupyter machine-learning notebook python
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # syd

[![PyPI version](https://badge.fury.io/py/syd.svg)](https://badge.fury.io/py/syd)
[![Tests](https://github.com/landoskape/syd/actions/workflows/tests.yml/badge.svg)](https://github.com/landoskape/syd/actions/workflows/tests.yml)
[![Documentation Status](https://readthedocs.org/projects/shareyourdata/badge/?version=stable)](https://shareyourdata.readthedocs.io/en/stable/?badge=stable)
[![codecov](https://codecov.io/gh/landoskape/syd/branch/main/graph/badge.svg)](https://codecov.io/gh/landoskape/syd)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)


A package to help you share your data!

Have you ever wanted to look through all your data really quickly interactively? Of course you have. Mo data mo problems, but only if you don't know what to do with it. And that starts with looking at your data. And that's why syd stands for show your data! 

Syd is a system for creating a data viewing GUI that you can view on a web-browser (feature coming soon, right now only in jupyter notebooks). And guess what? Since it opens on a web browser, you can even open it on any other computer on your local network! For example, your PI's computer. Gone are the days of single random examples that they make infinitely stubborn conclusions about. Now, you can look at all the examples, quickly and easily, on their computer. And that's why syd stands for share your data!

Okay, so what is it? Syd is an automated system to convert some basic python plotting code into an interactive GUI. This is great, because it means you only have to think about what you want to plot and which parameters you want to be interactive. Syd handles all the behind-the-scenes boilerplate code required to make an interface. You know what that means? It means you get to focus on _thinking_ about your data, rather than spending time writing code to look at it. And that's why syd stands for Science, Yes! Dayummmm!

## Installation
It's easy, just use pip install. The dependencies are light so it should work in most environments.
```bash
pip install syd
```

## Quick Start
Right now the only way to use it is in a jupyter notebook. More deployment options coming soon!
This is an example of a sine wave viewer which is about as simple as it gets. 
```python
# In a notebook! 
import matplotlib.pyplot as plt
import numpy as np
from syd import make_viewer
def plot(viewer, state):
    fig, ax = plt.subplots()
    x = np.linspace(0, 10, 1000)
    y = state['amplitude'] * np.sin(state['frequency'] * x)
    ax.plot(x, y)
    return fig
        
viewer = make_viewer()
viewer.set_plot(plot)
viewer.add_float('amplitude', value=1.0, min_value=0, max_value=2)
viewer.add_float('frequency', value=1.0, min_value=0.1, max_value=5)
viewer.deploy(continuous=True)
```

We have several examples of more complex viewers in the [examples](examples) folder. A good one
to start with is the [first example](examples/first_example.ipynb) because this has detailed 
explanations of how to use the core elements of SYD. To see what the exact same viewer looks like
when written as a class, see the [subclass example](examples/subclass_example.ipynb). This format
is pretty useful when you want complex functionality - for example if you want to add extra
supporting methods for processing data and updating parameters that require more complex logic.

## Documentation

Full documentation is available at [shareyourdata.readthedocs.io](https://shareyourdata.readthedocs.io/).

## License

This project is licensed under the GNU General Public License v3.0 - see the [LICENSE](LICENSE) file for details.

## Contributing

Contributions are welcome! Here's how you can help:

1. Fork the repository
2. Create a new branch (`git checkout -b feature/amazing-feature`)
3. Make your changes
4. Run the tests (`pytest`)
5. Commit your changes (`git commit -m 'Add amazing feature'`)
6. Push to the branch (`git push origin feature/amazing-feature`)
7. Open a Pull Request online

Please make sure to update tests as appropriate and adhere to the existing coding style (black, line-length=88, other style guidelines not capture by black, generally following pep8 guidelines).


## To-Do List
- Notebook deployment debouncer: 
  - Probably make this dependent on whether the user is in %matplotlib widget mode or not
  - Also probably make it dependent on whether the deployer is in continuous mode or not
  - Potentially make the wait_time dynamic depending on how fast the plot method is and how
  - frequently the no comm messages show up... (if we can catch them)
- Consider the class method "of this class" function permissions.... (and write tests...)
- Think about whether there's alternatives to creating new figures each time...
- Consider adding a step to the integer parameter...
- Idea!
  - We could make fig=?, ax=? arguments optional for the plot function and add a
    "recycle_figure: bool = False" flag be part of the deploy API. This way, an
    advanced user that wants snappy responsivity or complex figure management can
    do so, but the default is for the user to generate a new figure object each time.
- I've updated some rules for parameters -- need to make tests for empty options on selection / multiple selections
            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "syd",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "data-science, gui, interactive, jupyter, machine-learning, notebook, python",
    "author": null,
    "author_email": "Andrew Landau <andrew+tyler+landau+getridofthisanddtheplusses@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/69/97/49d2a41c233825844263f010dad75ca1fe57a36b7b8e351ac597abf92344/syd-0.1.7.tar.gz",
    "platform": null,
    "description": "# syd\n\n[![PyPI version](https://badge.fury.io/py/syd.svg)](https://badge.fury.io/py/syd)\n[![Tests](https://github.com/landoskape/syd/actions/workflows/tests.yml/badge.svg)](https://github.com/landoskape/syd/actions/workflows/tests.yml)\n[![Documentation Status](https://readthedocs.org/projects/shareyourdata/badge/?version=stable)](https://shareyourdata.readthedocs.io/en/stable/?badge=stable)\n[![codecov](https://codecov.io/gh/landoskape/syd/branch/main/graph/badge.svg)](https://codecov.io/gh/landoskape/syd)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\n\nA package to help you share your data!\n\nHave you ever wanted to look through all your data really quickly interactively? Of course you have. Mo data mo problems, but only if you don't know what to do with it. And that starts with looking at your data. And that's why syd stands for show your data! \n\nSyd is a system for creating a data viewing GUI that you can view on a web-browser (feature coming soon, right now only in jupyter notebooks). And guess what? Since it opens on a web browser, you can even open it on any other computer on your local network! For example, your PI's computer. Gone are the days of single random examples that they make infinitely stubborn conclusions about. Now, you can look at all the examples, quickly and easily, on their computer. And that's why syd stands for share your data!\n\nOkay, so what is it? Syd is an automated system to convert some basic python plotting code into an interactive GUI. This is great, because it means you only have to think about what you want to plot and which parameters you want to be interactive. Syd handles all the behind-the-scenes boilerplate code required to make an interface. You know what that means? It means you get to focus on _thinking_ about your data, rather than spending time writing code to look at it. And that's why syd stands for Science, Yes! Dayummmm!\n\n## Installation\nIt's easy, just use pip install. The dependencies are light so it should work in most environments.\n```bash\npip install syd\n```\n\n## Quick Start\nRight now the only way to use it is in a jupyter notebook. More deployment options coming soon!\nThis is an example of a sine wave viewer which is about as simple as it gets. \n```python\n# In a notebook! \nimport matplotlib.pyplot as plt\nimport numpy as np\nfrom syd import make_viewer\ndef plot(viewer, state):\n    fig, ax = plt.subplots()\n    x = np.linspace(0, 10, 1000)\n    y = state['amplitude'] * np.sin(state['frequency'] * x)\n    ax.plot(x, y)\n    return fig\n        \nviewer = make_viewer()\nviewer.set_plot(plot)\nviewer.add_float('amplitude', value=1.0, min_value=0, max_value=2)\nviewer.add_float('frequency', value=1.0, min_value=0.1, max_value=5)\nviewer.deploy(continuous=True)\n```\n\nWe have several examples of more complex viewers in the [examples](examples) folder. A good one\nto start with is the [first example](examples/first_example.ipynb) because this has detailed \nexplanations of how to use the core elements of SYD. To see what the exact same viewer looks like\nwhen written as a class, see the [subclass example](examples/subclass_example.ipynb). This format\nis pretty useful when you want complex functionality - for example if you want to add extra\nsupporting methods for processing data and updating parameters that require more complex logic.\n\n## Documentation\n\nFull documentation is available at [shareyourdata.readthedocs.io](https://shareyourdata.readthedocs.io/).\n\n## License\n\nThis project is licensed under the GNU General Public License v3.0 - see the [LICENSE](LICENSE) file for details.\n\n## Contributing\n\nContributions are welcome! Here's how you can help:\n\n1. Fork the repository\n2. Create a new branch (`git checkout -b feature/amazing-feature`)\n3. Make your changes\n4. Run the tests (`pytest`)\n5. Commit your changes (`git commit -m 'Add amazing feature'`)\n6. Push to the branch (`git push origin feature/amazing-feature`)\n7. Open a Pull Request online\n\nPlease make sure to update tests as appropriate and adhere to the existing coding style (black, line-length=88, other style guidelines not capture by black, generally following pep8 guidelines).\n\n\n## To-Do List\n- Notebook deployment debouncer: \n  - Probably make this dependent on whether the user is in %matplotlib widget mode or not\n  - Also probably make it dependent on whether the deployer is in continuous mode or not\n  - Potentially make the wait_time dynamic depending on how fast the plot method is and how\n  - frequently the no comm messages show up... (if we can catch them)\n- Consider the class method \"of this class\" function permissions.... (and write tests...)\n- Think about whether there's alternatives to creating new figures each time...\n- Consider adding a step to the integer parameter...\n- Idea!\n  - We could make fig=?, ax=? arguments optional for the plot function and add a\n    \"recycle_figure: bool = False\" flag be part of the deploy API. This way, an\n    advanced user that wants snappy responsivity or complex figure management can\n    do so, but the default is for the user to generate a new figure object each time.\n- I've updated some rules for parameters -- need to make tests for empty options on selection / multiple selections",
    "bugtrack_url": null,
    "license": null,
    "summary": "A Python package for making GUIs for data science easy.",
    "version": "0.1.7",
    "project_urls": {
        "Homepage": "https://github.com/landoskape/syd"
    },
    "split_keywords": [
        "data-science",
        " gui",
        " interactive",
        " jupyter",
        " machine-learning",
        " notebook",
        " python"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "0e03e52bcab8f0d91372890504d0ba44e96ffb1de00f1cac680b0c90b3efbcd4",
                "md5": "aa6a7329fbdb5c3e97f3156e36eb80d6",
                "sha256": "496a9b8bf99bc9967c0e68d4089aa91c15d64286e41accba0a143be68c32002a"
            },
            "downloads": -1,
            "filename": "syd-0.1.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "aa6a7329fbdb5c3e97f3156e36eb80d6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 61843,
            "upload_time": "2025-03-05T22:12:14",
            "upload_time_iso_8601": "2025-03-05T22:12:14.464853Z",
            "url": "https://files.pythonhosted.org/packages/0e/03/e52bcab8f0d91372890504d0ba44e96ffb1de00f1cac680b0c90b3efbcd4/syd-0.1.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "699749d2a41c233825844263f010dad75ca1fe57a36b7b8e351ac597abf92344",
                "md5": "c94d713eea60a59dccba56bc4d501fca",
                "sha256": "7905f6c63392db502e692cb68d3e4fd0789110e36f7813bd0633464185ac34a2"
            },
            "downloads": -1,
            "filename": "syd-0.1.7.tar.gz",
            "has_sig": false,
            "md5_digest": "c94d713eea60a59dccba56bc4d501fca",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 53588,
            "upload_time": "2025-03-05T22:12:16",
            "upload_time_iso_8601": "2025-03-05T22:12:16.639429Z",
            "url": "https://files.pythonhosted.org/packages/69/97/49d2a41c233825844263f010dad75ca1fe57a36b7b8e351ac597abf92344/syd-0.1.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-03-05 22:12:16",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "landoskape",
    "github_project": "syd",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "syd"
}
        
Elapsed time: 0.44614s