syd 0.1.6__tar.gz → 0.1.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. {syd-0.1.6 → syd-0.1.7}/PKG-INFO +26 -12
  2. {syd-0.1.6 → syd-0.1.7}/README.md +22 -11
  3. {syd-0.1.6 → syd-0.1.7}/pyproject.toml +12 -1
  4. {syd-0.1.6 → syd-0.1.7}/syd/__init__.py +3 -3
  5. syd-0.1.7/syd/flask_deployment/__init__.py +1 -0
  6. syd-0.1.7/syd/flask_deployment/components.py +510 -0
  7. syd-0.1.7/syd/flask_deployment/deployer.py +302 -0
  8. syd-0.1.7/syd/flask_deployment/static/css/viewer.css +82 -0
  9. syd-0.1.7/syd/flask_deployment/static/js/viewer.js +174 -0
  10. syd-0.1.7/syd/flask_deployment/templates/base.html +29 -0
  11. syd-0.1.7/syd/flask_deployment/templates/viewer.html +51 -0
  12. syd-0.1.7/syd/flask_deployment/testing_principles.md +300 -0
  13. syd-0.1.7/syd/notebook_deployment/__init__.py +1 -0
  14. syd-0.1.6/syd/notebook_deployment/deployer.py → syd-0.1.7/syd/notebook_deployment/_ipympl_deployer.py +19 -15
  15. syd-0.1.7/syd/notebook_deployment/deployer.py +330 -0
  16. {syd-0.1.6 → syd-0.1.7}/syd/notebook_deployment/widgets.py +142 -69
  17. {syd-0.1.6 → syd-0.1.7}/syd/parameters.py +93 -180
  18. syd-0.1.7/syd/plotly_deployment/__init__.py +1 -0
  19. syd-0.1.7/syd/plotly_deployment/components.py +531 -0
  20. syd-0.1.7/syd/plotly_deployment/deployer.py +376 -0
  21. syd-0.1.6/syd/interactive_viewer.py → syd-0.1.7/syd/viewer.py +152 -188
  22. syd-0.1.6/syd/flask_deployment/__init__.py +0 -0
  23. syd-0.1.6/syd/flask_deployment/components.py +0 -497
  24. syd-0.1.6/syd/flask_deployment/deployer.py +0 -338
  25. syd-0.1.6/syd/flask_deployment/static/css/styles.css +0 -39
  26. syd-0.1.6/syd/flask_deployment/static/js/components.js +0 -51
  27. syd-0.1.6/syd/flask_deployment/static/js/viewer.js +0 -0
  28. syd-0.1.6/syd/flask_deployment/templates/base.html +0 -26
  29. syd-0.1.6/syd/flask_deployment/templates/viewer.html +0 -97
  30. syd-0.1.6/syd/notebook_deployment/__init__.py +0 -1
  31. {syd-0.1.6 → syd-0.1.7}/.gitignore +0 -0
  32. {syd-0.1.6 → syd-0.1.7}/LICENSE +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: syd
3
- Version: 0.1.6
3
+ Version: 0.1.7
4
4
  Summary: A Python package for making GUIs for data science easy.
5
5
  Project-URL: Homepage, https://github.com/landoskape/syd
6
6
  Author-email: Andrew Landau <andrew+tyler+landau+getridofthisanddtheplusses@gmail.com>
@@ -18,8 +18,11 @@ Classifier: Programming Language :: Python :: 3.11
18
18
  Classifier: Programming Language :: Python :: 3.12
19
19
  Classifier: Programming Language :: Python :: 3.13
20
20
  Requires-Python: >=3.9
21
+ Requires-Dist: dash
22
+ Requires-Dist: ipympl
21
23
  Requires-Dist: ipywidgets
22
24
  Requires-Dist: matplotlib
25
+ Requires-Dist: plotly
23
26
  Provides-Extra: test
24
27
  Requires-Dist: pytest-cov>=4.0.0; extra == 'test'
25
28
  Requires-Dist: pytest>=7.0.0; extra == 'test'
@@ -38,18 +41,18 @@ A package to help you share your data!
38
41
 
39
42
  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!
40
43
 
41
- Syd is a system for creating a data viewing GUI that you can view on a web-browser. 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. 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!
44
+ 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!
42
45
 
43
- 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 what you want to be interactive, syd does the work to make an interface. There's some small overhead for learning how to prepare your data to work with syd, but we provide some templates to make it easy. You know what that means? That 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! Datum!
46
+ 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!
44
47
 
45
48
  ## Installation
46
-
49
+ It's easy, just use pip install. The dependencies are light so it should work in most environments.
47
50
  ```bash
48
51
  pip install syd
49
52
  ```
50
53
 
51
54
  ## Quick Start
52
- Right now the only way to use it is in a jupyter notebook. More deployments coming soon!
55
+ Right now the only way to use it is in a jupyter notebook. More deployment options coming soon!
53
56
  This is an example of a sine wave viewer which is about as simple as it gets.
54
57
  ```python
55
58
  # In a notebook!
@@ -81,12 +84,6 @@ supporting methods for processing data and updating parameters that require more
81
84
 
82
85
  Full documentation is available at [shareyourdata.readthedocs.io](https://shareyourdata.readthedocs.io/).
83
86
 
84
- Key features:
85
- - Create interactive matplotlib visualizations with minimal code
86
- - Support for various parameter types (sliders, dropdowns, checkboxes, etc.)
87
- - Real-time updates as parameters change
88
- - Works in Jupyter notebooks and can be shared over local network
89
-
90
87
  ## License
91
88
 
92
89
  This project is licensed under the GNU General Public License v3.0 - see the [LICENSE](LICENSE) file for details.
@@ -103,4 +100,21 @@ Contributions are welcome! Here's how you can help:
103
100
  6. Push to the branch (`git push origin feature/amazing-feature`)
104
101
  7. Open a Pull Request online
105
102
 
106
- Please make sure to update tests as appropriate and adhere to the existing coding style.
103
+ 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).
104
+
105
+
106
+ ## To-Do List
107
+ - Notebook deployment debouncer:
108
+ - Probably make this dependent on whether the user is in %matplotlib widget mode or not
109
+ - Also probably make it dependent on whether the deployer is in continuous mode or not
110
+ - Potentially make the wait_time dynamic depending on how fast the plot method is and how
111
+ - frequently the no comm messages show up... (if we can catch them)
112
+ - Consider the class method "of this class" function permissions.... (and write tests...)
113
+ - Think about whether there's alternatives to creating new figures each time...
114
+ - Consider adding a step to the integer parameter...
115
+ - Idea!
116
+ - We could make fig=?, ax=? arguments optional for the plot function and add a
117
+ "recycle_figure: bool = False" flag be part of the deploy API. This way, an
118
+ advanced user that wants snappy responsivity or complex figure management can
119
+ do so, but the default is for the user to generate a new figure object each time.
120
+ - I've updated some rules for parameters -- need to make tests for empty options on selection / multiple selections
@@ -11,18 +11,18 @@ A package to help you share your data!
11
11
 
12
12
  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!
13
13
 
14
- Syd is a system for creating a data viewing GUI that you can view on a web-browser. 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. 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!
14
+ 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!
15
15
 
16
- 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 what you want to be interactive, syd does the work to make an interface. There's some small overhead for learning how to prepare your data to work with syd, but we provide some templates to make it easy. You know what that means? That 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! Datum!
16
+ 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!
17
17
 
18
18
  ## Installation
19
-
19
+ It's easy, just use pip install. The dependencies are light so it should work in most environments.
20
20
  ```bash
21
21
  pip install syd
22
22
  ```
23
23
 
24
24
  ## Quick Start
25
- Right now the only way to use it is in a jupyter notebook. More deployments coming soon!
25
+ Right now the only way to use it is in a jupyter notebook. More deployment options coming soon!
26
26
  This is an example of a sine wave viewer which is about as simple as it gets.
27
27
  ```python
28
28
  # In a notebook!
@@ -54,12 +54,6 @@ supporting methods for processing data and updating parameters that require more
54
54
 
55
55
  Full documentation is available at [shareyourdata.readthedocs.io](https://shareyourdata.readthedocs.io/).
56
56
 
57
- Key features:
58
- - Create interactive matplotlib visualizations with minimal code
59
- - Support for various parameter types (sliders, dropdowns, checkboxes, etc.)
60
- - Real-time updates as parameters change
61
- - Works in Jupyter notebooks and can be shared over local network
62
-
63
57
  ## License
64
58
 
65
59
  This project is licensed under the GNU General Public License v3.0 - see the [LICENSE](LICENSE) file for details.
@@ -76,4 +70,21 @@ Contributions are welcome! Here's how you can help:
76
70
  6. Push to the branch (`git push origin feature/amazing-feature`)
77
71
  7. Open a Pull Request online
78
72
 
79
- Please make sure to update tests as appropriate and adhere to the existing coding style.
73
+ 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).
74
+
75
+
76
+ ## To-Do List
77
+ - Notebook deployment debouncer:
78
+ - Probably make this dependent on whether the user is in %matplotlib widget mode or not
79
+ - Also probably make it dependent on whether the deployer is in continuous mode or not
80
+ - Potentially make the wait_time dynamic depending on how fast the plot method is and how
81
+ - frequently the no comm messages show up... (if we can catch them)
82
+ - Consider the class method "of this class" function permissions.... (and write tests...)
83
+ - Think about whether there's alternatives to creating new figures each time...
84
+ - Consider adding a step to the integer parameter...
85
+ - Idea!
86
+ - We could make fig=?, ax=? arguments optional for the plot function and add a
87
+ "recycle_figure: bool = False" flag be part of the deploy API. This way, an
88
+ advanced user that wants snappy responsivity or complex figure management can
89
+ do so, but the default is for the user to generate a new figure object each time.
90
+ - I've updated some rules for parameters -- need to make tests for empty options on selection / multiple selections
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "syd"
7
- version = "0.1.6"
7
+ dynamic = ["version"]
8
8
  authors = [
9
9
  {name = "Andrew Landau", email = "andrew+tyler+landau+getridofthisanddtheplusses@gmail.com"},
10
10
  ]
@@ -13,10 +13,15 @@ readme = "README.md"
13
13
  requires-python = ">=3.9"
14
14
  dependencies = [
15
15
  "ipywidgets",
16
+ "ipympl",
16
17
  "matplotlib",
18
+ "plotly",
19
+ "dash",
17
20
  ]
18
21
  license = "GPL-3.0-or-later"
19
22
  keywords = ["data-science", "machine-learning", "gui", "interactive", "jupyter", "notebook", "python"]
23
+
24
+
20
25
  classifiers = [
21
26
  "Development Status :: 4 - Beta",
22
27
  "Intended Audience :: Developers",
@@ -44,7 +49,13 @@ include = [
44
49
  "syd",
45
50
  ]
46
51
 
52
+ [tool.hatch.version]
53
+ path = "syd/__init__.py"
54
+
47
55
  [tool.pytest.ini_options]
48
56
  testpaths = ["tests"]
49
57
  python_files = ["test_*.py"]
50
58
  addopts = "--cov=syd --cov-report=xml --cov-report=term-missing"
59
+
60
+ [tool.black]
61
+ line-length = 88
@@ -1,11 +1,11 @@
1
1
  from typing import Callable, Optional
2
- from .interactive_viewer import InteractiveViewer
2
+ from .viewer import Viewer
3
3
 
4
- __version__ = "0.1.6"
4
+ __version__ = "0.1.7"
5
5
 
6
6
 
7
7
  def make_viewer(plot_func: Optional[Callable] = None):
8
- viewer = InteractiveViewer()
8
+ viewer = Viewer()
9
9
  if plot_func is not None:
10
10
  viewer.set_plot(plot_func)
11
11
  return viewer
@@ -0,0 +1 @@
1
+ from .deployer import FlaskDeployer