vuepy-core 0.1.8a1__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 (115) hide show
  1. vuepy-core-0.1.8a1/LICENSE +21 -0
  2. vuepy-core-0.1.8a1/MANIFEST.in +11 -0
  3. vuepy-core-0.1.8a1/PKG-INFO +180 -0
  4. vuepy-core-0.1.8a1/README.md +165 -0
  5. vuepy-core-0.1.8a1/setup.cfg +4 -0
  6. vuepy-core-0.1.8a1/setup.py +42 -0
  7. vuepy-core-0.1.8a1/src/ipywui/__init__.py +9 -0
  8. vuepy-core-0.1.8a1/src/ipywui/components/Accordion.vue +21 -0
  9. vuepy-core-0.1.8a1/src/ipywui/components/AccordionItem.vue +16 -0
  10. vuepy-core-0.1.8a1/src/ipywui/components/AppLayout.vue +38 -0
  11. vuepy-core-0.1.8a1/src/ipywui/components/Box.vue +19 -0
  12. vuepy-core-0.1.8a1/src/ipywui/components/Button.vue +47 -0
  13. vuepy-core-0.1.8a1/src/ipywui/components/Checkbox.vue +38 -0
  14. vuepy-core-0.1.8a1/src/ipywui/components/Clipboard.vue +25 -0
  15. vuepy-core-0.1.8a1/src/ipywui/components/Col.vue +23 -0
  16. vuepy-core-0.1.8a1/src/ipywui/components/ColorPicker.vue +35 -0
  17. vuepy-core-0.1.8a1/src/ipywui/components/Combobox.vue +47 -0
  18. vuepy-core-0.1.8a1/src/ipywui/components/Controller.vue +19 -0
  19. vuepy-core-0.1.8a1/src/ipywui/components/DatePicker.vue +31 -0
  20. vuepy-core-0.1.8a1/src/ipywui/components/DateTimePicker.vue +28 -0
  21. vuepy-core-0.1.8a1/src/ipywui/components/Dialog.vue +38 -0
  22. vuepy-core-0.1.8a1/src/ipywui/components/Display.vue +20 -0
  23. vuepy-core-0.1.8a1/src/ipywui/components/Dropdown.vue +40 -0
  24. vuepy-core-0.1.8a1/src/ipywui/components/FileUpload.vue +36 -0
  25. vuepy-core-0.1.8a1/src/ipywui/components/HBox.vue +26 -0
  26. vuepy-core-0.1.8a1/src/ipywui/components/HtmlMath.vue +26 -0
  27. vuepy-core-0.1.8a1/src/ipywui/components/Image.vue +32 -0
  28. vuepy-core-0.1.8a1/src/ipywui/components/Input.vue +46 -0
  29. vuepy-core-0.1.8a1/src/ipywui/components/InputNumber.vue +42 -0
  30. vuepy-core-0.1.8a1/src/ipywui/components/Label.vue +24 -0
  31. vuepy-core-0.1.8a1/src/ipywui/components/MarkdownViewer.vue +16 -0
  32. vuepy-core-0.1.8a1/src/ipywui/components/Play.vue +44 -0
  33. vuepy-core-0.1.8a1/src/ipywui/components/Progress.vue +51 -0
  34. vuepy-core-0.1.8a1/src/ipywui/components/RadioButtons.vue +41 -0
  35. vuepy-core-0.1.8a1/src/ipywui/components/Row.vue +38 -0
  36. vuepy-core-0.1.8a1/src/ipywui/components/Select.vue +52 -0
  37. vuepy-core-0.1.8a1/src/ipywui/components/SelectColors.vue +28 -0
  38. vuepy-core-0.1.8a1/src/ipywui/components/SelectNumbers.vue +43 -0
  39. vuepy-core-0.1.8a1/src/ipywui/components/SelectTags.vue +28 -0
  40. vuepy-core-0.1.8a1/src/ipywui/components/Slider.vue +68 -0
  41. vuepy-core-0.1.8a1/src/ipywui/components/Stack.vue +19 -0
  42. vuepy-core-0.1.8a1/src/ipywui/components/StackItem.vue +18 -0
  43. vuepy-core-0.1.8a1/src/ipywui/components/TabPane.vue +16 -0
  44. vuepy-core-0.1.8a1/src/ipywui/components/Tabs.vue +21 -0
  45. vuepy-core-0.1.8a1/src/ipywui/components/TimePicker.vue +37 -0
  46. vuepy-core-0.1.8a1/src/ipywui/components/ToggleButton.vue +48 -0
  47. vuepy-core-0.1.8a1/src/ipywui/components/ToggleButtons.vue +52 -0
  48. vuepy-core-0.1.8a1/src/ipywui/components/VBox.vue +26 -0
  49. vuepy-core-0.1.8a1/src/ipywui/components/Valid.vue +25 -0
  50. vuepy-core-0.1.8a1/src/ipywui/components/_Stub.vue +13 -0
  51. vuepy-core-0.1.8a1/src/ipywui/comps.py +603 -0
  52. vuepy-core-0.1.8a1/src/ipywui/core.py +81 -0
  53. vuepy-core-0.1.8a1/src/ipywui/widgets/__init__.py +700 -0
  54. vuepy-core-0.1.8a1/src/ipywui/widgets/assets/css/md_code_highlight.css +75 -0
  55. vuepy-core-0.1.8a1/src/ipywui/widgets/custom/clipboard/__init__.py +33 -0
  56. vuepy-core-0.1.8a1/src/ipywui/widgets/custom/clipboard/index.css +0 -0
  57. vuepy-core-0.1.8a1/src/ipywui/widgets/custom/clipboard/index.js +61 -0
  58. vuepy-core-0.1.8a1/src/ipywui/widgets/custom/dialog/__init__.py +41 -0
  59. vuepy-core-0.1.8a1/src/ipywui/widgets/custom/dialog/index.css +73 -0
  60. vuepy-core-0.1.8a1/src/ipywui/widgets/custom/dialog/index.js +73 -0
  61. vuepy-core-0.1.8a1/src/ipywui/widgets/custom/message/__init__.py +90 -0
  62. vuepy-core-0.1.8a1/src/ipywui/widgets/custom/message/index.css +131 -0
  63. vuepy-core-0.1.8a1/src/ipywui/widgets/custom/message/index.js +57 -0
  64. vuepy-core-0.1.8a1/src/vuepy/__init__.py +70 -0
  65. vuepy-core-0.1.8a1/src/vuepy/__main__.py +23 -0
  66. vuepy-core-0.1.8a1/src/vuepy/cli/__init__.py +15 -0
  67. vuepy-core-0.1.8a1/src/vuepy/cli/create_vue.py +81 -0
  68. vuepy-core-0.1.8a1/src/vuepy/cli/template_vue/App.vue +14 -0
  69. vuepy-core-0.1.8a1/src/vuepy/cli/template_vue/app.ipynb +41 -0
  70. vuepy-core-0.1.8a1/src/vuepy/cli/template_vue/app.py +6 -0
  71. vuepy-core-0.1.8a1/src/vuepy/compiler_core/__init__.py +0 -0
  72. vuepy-core-0.1.8a1/src/vuepy/compiler_core/ast.py +268 -0
  73. vuepy-core-0.1.8a1/src/vuepy/compiler_core/component_expr.py +74 -0
  74. vuepy-core-0.1.8a1/src/vuepy/compiler_core/errors.py +13 -0
  75. vuepy-core-0.1.8a1/src/vuepy/compiler_core/options.py +26 -0
  76. vuepy-core-0.1.8a1/src/vuepy/compiler_core/utils.py +64 -0
  77. vuepy-core-0.1.8a1/src/vuepy/compiler_dom/__init__.py +0 -0
  78. vuepy-core-0.1.8a1/src/vuepy/compiler_dom/codegen.py +219 -0
  79. vuepy-core-0.1.8a1/src/vuepy/compiler_sfc/__init__.py +0 -0
  80. vuepy-core-0.1.8a1/src/vuepy/compiler_sfc/codegen.py +469 -0
  81. vuepy-core-0.1.8a1/src/vuepy/compiler_sfc/compile.py +189 -0
  82. vuepy-core-0.1.8a1/src/vuepy/compiler_sfc/compile_script.py +69 -0
  83. vuepy-core-0.1.8a1/src/vuepy/compiler_sfc/compile_template.py +240 -0
  84. vuepy-core-0.1.8a1/src/vuepy/js_stubs/vue.js +43 -0
  85. vuepy-core-0.1.8a1/src/vuepy/log.py +58 -0
  86. vuepy-core-0.1.8a1/src/vuepy/reactivity/__init__.py +0 -0
  87. vuepy-core-0.1.8a1/src/vuepy/reactivity/computed.py +91 -0
  88. vuepy-core-0.1.8a1/src/vuepy/reactivity/config.py +5 -0
  89. vuepy-core-0.1.8a1/src/vuepy/reactivity/constant.py +27 -0
  90. vuepy-core-0.1.8a1/src/vuepy/reactivity/dep.py +25 -0
  91. vuepy-core-0.1.8a1/src/vuepy/reactivity/effect.py +421 -0
  92. vuepy-core-0.1.8a1/src/vuepy/reactivity/effect_scope.py +123 -0
  93. vuepy-core-0.1.8a1/src/vuepy/reactivity/reactive.py +428 -0
  94. vuepy-core-0.1.8a1/src/vuepy/reactivity/ref.py +174 -0
  95. vuepy-core-0.1.8a1/src/vuepy/reactivity/watch.py +309 -0
  96. vuepy-core-0.1.8a1/src/vuepy/runtime/__init__.py +0 -0
  97. vuepy-core-0.1.8a1/src/vuepy/runtime/core/__init__.py +0 -0
  98. vuepy-core-0.1.8a1/src/vuepy/runtime/core/api_create_app.py +217 -0
  99. vuepy-core-0.1.8a1/src/vuepy/runtime/core/api_lifecycle.py +61 -0
  100. vuepy-core-0.1.8a1/src/vuepy/runtime/core/api_setup_helpers.py +130 -0
  101. vuepy-core-0.1.8a1/src/vuepy/runtime/core/import_sfc.py +24 -0
  102. vuepy-core-0.1.8a1/src/vuepy/utils/__init__.py +0 -0
  103. vuepy-core-0.1.8a1/src/vuepy/utils/appstore.py +12 -0
  104. vuepy-core-0.1.8a1/src/vuepy/utils/common.py +36 -0
  105. vuepy-core-0.1.8a1/src/vuepy/utils/factory.py +22 -0
  106. vuepy-core-0.1.8a1/src/vuepy/utils/image_processer.py +29 -0
  107. vuepy-core-0.1.8a1/src/vuepy/utils/magic.py +199 -0
  108. vuepy-core-0.1.8a1/src/vuepy/utils/singleton.py +16 -0
  109. vuepy-core-0.1.8a1/src/vuepy/version.py +40 -0
  110. vuepy-core-0.1.8a1/src/vuepy_core.egg-info/PKG-INFO +180 -0
  111. vuepy-core-0.1.8a1/src/vuepy_core.egg-info/SOURCES.txt +113 -0
  112. vuepy-core-0.1.8a1/src/vuepy_core.egg-info/dependency_links.txt +1 -0
  113. vuepy-core-0.1.8a1/src/vuepy_core.egg-info/entry_points.txt +2 -0
  114. vuepy-core-0.1.8a1/src/vuepy_core.egg-info/requires.txt +3 -0
  115. vuepy-core-0.1.8a1/src/vuepy_core.egg-info/top_level.txt +2 -0
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2023 URL2io.com
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,11 @@
1
+ include README.md LICENSE
2
+ include src/vuepy/js_stubs/vue.js
3
+ include src/vuepy/cli/*.py
4
+ include src/vuepy/cli/template_vue/*
5
+
6
+ include src/ipywui/components/*.vue
7
+ include src/ipywui/widgets/*.py
8
+ include src/ipywui/widgets/assets/css/*.css
9
+ include src/ipywui/widgets/custom/clipboard/*
10
+ include src/ipywui/widgets/custom/dialog/*
11
+ include src/ipywui/widgets/custom/message/*
@@ -0,0 +1,180 @@
1
+ Metadata-Version: 2.1
2
+ Name: vuepy-core
3
+ Version: 0.1.8a1
4
+ Summary: Vue.py is a progressive, incrementally-adoptable Python framework for building UI on the Jupyter Notebook.
5
+ Home-page: https://www.vuepy.org
6
+ Author: vuepy.org
7
+ Author-email: leilux.dev@gmail.com
8
+ License: MIT
9
+ Keywords: vue,Web UI,MVVM
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Programming Language :: Python :: 3.7
12
+ Requires-Python: >=3.7
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+
16
+ <h1>
17
+ <p align="center" style="color: #16b8f3">
18
+ <img width="180" src="https://github.com/vuepy/vuepy/blob/master/docs/assets/vuepy-logo.svg?raw=true">
19
+ <!--
20
+ <img src="./docs/assets/vuepy-logo.svg" width="180">
21
+ <img src="https://github.com/vuepy/vuepy/blob/master/docs/assets/vuepy-logo.svg?raw=true"
22
+ alt="vue.py logo." width="120" style="vertical-align: middle"
23
+ >Vue.py
24
+ -->
25
+ </p>
26
+ </h1>
27
+ <samp>
28
+ <p align="center">
29
+ <span>a progressive, incrementally-adoptable Python framework <br>for building UI on the Jupyter Notebook.</span>
30
+ <br>
31
+ <a href="#installation">installation</a> .
32
+ <a href="https://www.vuepy.org/guide/introduction.html">docs</a> .
33
+ <!--<a href="">discord</a> .-->
34
+ <a href="https://www.vuepy.org/guide/quick-start.html">learn</a>
35
+ </p>
36
+ </samp>
37
+
38
+ ## About
39
+
40
+ Vue.py (pronounced /vjuːpaɪ/, like "view py") is a Python framework for building user interfaces. It is built upon standard HTML, CSS, and Python, offering a declarative and component-based programming model that aids in the efficient development of user interfaces. Vue.py is capable of handling both simple and complex interfaces.
41
+
42
+ * 🛠️ create custom Jupyter UI using pure Python
43
+ * 🤖 prototype within .ipynb or .py files
44
+ * 🪄 reactive: update the data, vuepy will reactively update all dependent view components
45
+ * 🚀 batteries-included: built-in IPywUI includes 37+ commonly used UI components
46
+ * 🧩 extensible: can easily integrate third-party libraries such as plotly, pandas, etc
47
+ * 🖐️ interactive: bind sliders, buttons, plots, and more to Python — no callbacks required
48
+ * 🚀 run in Jupyter, JupyterLab, VSCode, Cursor, Google Colab and more
49
+ * ✨ generate UI interface with one click through AI-driven conversation interface. provide [llms.txt](https://www.vuepy.org/llms.txt), [llms-ctx.txt](https://www.vuepy.org/llms-ctx.txt)
50
+
51
+ ## Installation
52
+
53
+ **Vue.py** is available on [PyPI](https://pypi.org/project/org.vuepy.core/):
54
+
55
+ ```bash
56
+ pip install "org.vuepy.core"
57
+ ```
58
+
59
+ ## Usage
60
+
61
+ ```python
62
+ from vuepy import ref, create_app
63
+
64
+ def setup(*args):
65
+ count = ref(0)
66
+
67
+ def counter():
68
+ count.value += 1
69
+
70
+ return locals()
71
+
72
+
73
+ app = create_app({
74
+ 'setup': setup,
75
+ 'template': '''
76
+ <Button :label="f'Count is: {count.value}'"
77
+ @click='counter()'
78
+ ></Button>
79
+ '''
80
+ })
81
+ app.mount()
82
+ ```
83
+
84
+ ![](https://github.com/vuepy/vuepy/blob/master/docs/assets/readme-demo.gif?raw=true)
85
+
86
+ Read [the documentation](https://www.vuepy.org/guide/quick-start.html) to learn more.
87
+
88
+ ## Learn more
89
+
90
+ vuepy is easy to get started with, with lots of room for powers users.
91
+
92
+ Check out our [docs](https://www.vuepy.org/guide/introduction.html), the `examples/` folder, and our gallery to learn more.
93
+
94
+ <table>
95
+ <tr>
96
+ <th></th> <th>Desc</th> <th>Link</th>
97
+ </tr>
98
+ <tr>
99
+ <td><img src="https://github.com/vuepy/vuepy/blob/master/docs/assets/readme-demo.gif?raw=true" with='389px'></td>
100
+ <td>Reactivity</td>
101
+ <td><a target="_blank" href="https://www.vuepy.org/guide/essentials/reactivity-fundamentals.html">Read more</a> </td>
102
+ </tr>
103
+ <tr>
104
+ <td><img src='https://github.com/vuepy/vuepy/blob/master/docs/assets/plotly.gif?raw=true' with='389px'></td>
105
+ <td>Interacting with <a target="_blank" href="https://plotly.com/python/">plotly</a></td>
106
+ <td><a target="_blank" href="https://www.vuepy.org/ipywui/display.html#%E9%9B%86%E6%88%90-plotly-%E7%BB%98%E5%9B%BE%E7%BB%84%E4%BB%B6">Read more</a> </td>
107
+ </tr>
108
+ <tr>
109
+ <td><img src='https://github.com/vuepy/vuepy/blob/master/docs/assets/run-in-vscode.gif?raw=true' with='389px'></td>
110
+ <td>Run in VSCode</td>
111
+ <td><a target="_blank" href="https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter">Read more</a> </td>
112
+ </tr>
113
+ <tr>
114
+ <td><img src='https://github.com/vuepy/vuepy/blob/master/docs/assets/cursor_10fps.gif?raw=true' with='389px'></td>
115
+ <td>Building vuepy app with LLMs</td>
116
+ <td><a target="_blank" href="https://www.vuepy.org/guide/build-vuepy-withs-llms.html">Read more</a> </td>
117
+ </tr>
118
+ </table>
119
+
120
+
121
+ ## Support
122
+
123
+ Having trouble? Get help in our [Discord](https://discord.gg/) or open
124
+ a [Discussion](https://github.com/vuepy/vuepy/issues/new).
125
+
126
+ ## Contributing
127
+
128
+ **New contributors welcome!**
129
+ <!--Check out our
130
+ [Contributors Guide](./CONTRIBUTING.md) for help getting started.
131
+
132
+ Join us on [Discord](https://discord.gg/) to meet other maintainers.
133
+ We'll help you get your first contribution in no time!
134
+ -->
135
+
136
+ <!--
137
+ ## Citation
138
+
139
+ If you use **vuepy** in your work, please consider citing the following
140
+ publications:
141
+
142
+ Our [JOSS paper](https://joss.theoj.org/papers/10.21105/joss.06939) describing
143
+ the overall project and vision:
144
+
145
+ ```bibtex
146
+ @article{manz2024anywidget,
147
+ title = {anywidget: reusable widgets for interactive analysis and visualization in computational notebooks},
148
+ volume = {9},
149
+ url = {https://doi.org/10.21105/joss.06939},
150
+ doi = {10.21105/joss.06939},
151
+ number = {102},
152
+ journal = {Journal of Open Source Software},
153
+ author = {Manz, Trevor and Abdennur, Nezar and Gehlenborg, Nils},
154
+ year = {2024},
155
+ note = {Publisher: The Open Journal},
156
+ pages = {6939},
157
+ }
158
+ ```
159
+
160
+ Our [SciPy paper](https://proceedings.scipy.org/articles/NRPV2311), detailing
161
+ the motivation and approach behind Jupyter Widget ecosystem compatability:
162
+
163
+ ```bibtex
164
+ @inproceedings{manz2024notebooks,
165
+ title = {Any notebook served: authoring and sharing reusable interactive widgets},
166
+ copyright = {https://creativecommons.org/licenses/by/4.0/},
167
+ url = {https://doi.curvenote.com/10.25080/NRPV2311},
168
+ doi = {10.25080/NRPV2311},
169
+ urldate = {2024-10-07},
170
+ booktitle = {Proceedings of the 23rd {Python} in {Science} {Conference}},
171
+ author = {Manz, Trevor and Gehlenborg, Nils and Abdennur, Nezar},
172
+ month = jul,
173
+ year = {2024},
174
+ }
175
+ ```
176
+ -->
177
+
178
+ ## License
179
+
180
+ [MIT](https://github.com/vuepy/vuepy/blob/master/LICENSE)
@@ -0,0 +1,165 @@
1
+ <h1>
2
+ <p align="center" style="color: #16b8f3">
3
+ <img width="180" src="https://github.com/vuepy/vuepy/blob/master/docs/assets/vuepy-logo.svg?raw=true">
4
+ <!--
5
+ <img src="./docs/assets/vuepy-logo.svg" width="180">
6
+ <img src="https://github.com/vuepy/vuepy/blob/master/docs/assets/vuepy-logo.svg?raw=true"
7
+ alt="vue.py logo." width="120" style="vertical-align: middle"
8
+ >Vue.py
9
+ -->
10
+ </p>
11
+ </h1>
12
+ <samp>
13
+ <p align="center">
14
+ <span>a progressive, incrementally-adoptable Python framework <br>for building UI on the Jupyter Notebook.</span>
15
+ <br>
16
+ <a href="#installation">installation</a> .
17
+ <a href="https://www.vuepy.org/guide/introduction.html">docs</a> .
18
+ <!--<a href="">discord</a> .-->
19
+ <a href="https://www.vuepy.org/guide/quick-start.html">learn</a>
20
+ </p>
21
+ </samp>
22
+
23
+ ## About
24
+
25
+ Vue.py (pronounced /vjuːpaɪ/, like "view py") is a Python framework for building user interfaces. It is built upon standard HTML, CSS, and Python, offering a declarative and component-based programming model that aids in the efficient development of user interfaces. Vue.py is capable of handling both simple and complex interfaces.
26
+
27
+ * 🛠️ create custom Jupyter UI using pure Python
28
+ * 🤖 prototype within .ipynb or .py files
29
+ * 🪄 reactive: update the data, vuepy will reactively update all dependent view components
30
+ * 🚀 batteries-included: built-in IPywUI includes 37+ commonly used UI components
31
+ * 🧩 extensible: can easily integrate third-party libraries such as plotly, pandas, etc
32
+ * 🖐️ interactive: bind sliders, buttons, plots, and more to Python — no callbacks required
33
+ * 🚀 run in Jupyter, JupyterLab, VSCode, Cursor, Google Colab and more
34
+ * ✨ generate UI interface with one click through AI-driven conversation interface. provide [llms.txt](https://www.vuepy.org/llms.txt), [llms-ctx.txt](https://www.vuepy.org/llms-ctx.txt)
35
+
36
+ ## Installation
37
+
38
+ **Vue.py** is available on [PyPI](https://pypi.org/project/org.vuepy.core/):
39
+
40
+ ```bash
41
+ pip install "org.vuepy.core"
42
+ ```
43
+
44
+ ## Usage
45
+
46
+ ```python
47
+ from vuepy import ref, create_app
48
+
49
+ def setup(*args):
50
+ count = ref(0)
51
+
52
+ def counter():
53
+ count.value += 1
54
+
55
+ return locals()
56
+
57
+
58
+ app = create_app({
59
+ 'setup': setup,
60
+ 'template': '''
61
+ <Button :label="f'Count is: {count.value}'"
62
+ @click='counter()'
63
+ ></Button>
64
+ '''
65
+ })
66
+ app.mount()
67
+ ```
68
+
69
+ ![](https://github.com/vuepy/vuepy/blob/master/docs/assets/readme-demo.gif?raw=true)
70
+
71
+ Read [the documentation](https://www.vuepy.org/guide/quick-start.html) to learn more.
72
+
73
+ ## Learn more
74
+
75
+ vuepy is easy to get started with, with lots of room for powers users.
76
+
77
+ Check out our [docs](https://www.vuepy.org/guide/introduction.html), the `examples/` folder, and our gallery to learn more.
78
+
79
+ <table>
80
+ <tr>
81
+ <th></th> <th>Desc</th> <th>Link</th>
82
+ </tr>
83
+ <tr>
84
+ <td><img src="https://github.com/vuepy/vuepy/blob/master/docs/assets/readme-demo.gif?raw=true" with='389px'></td>
85
+ <td>Reactivity</td>
86
+ <td><a target="_blank" href="https://www.vuepy.org/guide/essentials/reactivity-fundamentals.html">Read more</a> </td>
87
+ </tr>
88
+ <tr>
89
+ <td><img src='https://github.com/vuepy/vuepy/blob/master/docs/assets/plotly.gif?raw=true' with='389px'></td>
90
+ <td>Interacting with <a target="_blank" href="https://plotly.com/python/">plotly</a></td>
91
+ <td><a target="_blank" href="https://www.vuepy.org/ipywui/display.html#%E9%9B%86%E6%88%90-plotly-%E7%BB%98%E5%9B%BE%E7%BB%84%E4%BB%B6">Read more</a> </td>
92
+ </tr>
93
+ <tr>
94
+ <td><img src='https://github.com/vuepy/vuepy/blob/master/docs/assets/run-in-vscode.gif?raw=true' with='389px'></td>
95
+ <td>Run in VSCode</td>
96
+ <td><a target="_blank" href="https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter">Read more</a> </td>
97
+ </tr>
98
+ <tr>
99
+ <td><img src='https://github.com/vuepy/vuepy/blob/master/docs/assets/cursor_10fps.gif?raw=true' with='389px'></td>
100
+ <td>Building vuepy app with LLMs</td>
101
+ <td><a target="_blank" href="https://www.vuepy.org/guide/build-vuepy-withs-llms.html">Read more</a> </td>
102
+ </tr>
103
+ </table>
104
+
105
+
106
+ ## Support
107
+
108
+ Having trouble? Get help in our [Discord](https://discord.gg/) or open
109
+ a [Discussion](https://github.com/vuepy/vuepy/issues/new).
110
+
111
+ ## Contributing
112
+
113
+ **New contributors welcome!**
114
+ <!--Check out our
115
+ [Contributors Guide](./CONTRIBUTING.md) for help getting started.
116
+
117
+ Join us on [Discord](https://discord.gg/) to meet other maintainers.
118
+ We'll help you get your first contribution in no time!
119
+ -->
120
+
121
+ <!--
122
+ ## Citation
123
+
124
+ If you use **vuepy** in your work, please consider citing the following
125
+ publications:
126
+
127
+ Our [JOSS paper](https://joss.theoj.org/papers/10.21105/joss.06939) describing
128
+ the overall project and vision:
129
+
130
+ ```bibtex
131
+ @article{manz2024anywidget,
132
+ title = {anywidget: reusable widgets for interactive analysis and visualization in computational notebooks},
133
+ volume = {9},
134
+ url = {https://doi.org/10.21105/joss.06939},
135
+ doi = {10.21105/joss.06939},
136
+ number = {102},
137
+ journal = {Journal of Open Source Software},
138
+ author = {Manz, Trevor and Abdennur, Nezar and Gehlenborg, Nils},
139
+ year = {2024},
140
+ note = {Publisher: The Open Journal},
141
+ pages = {6939},
142
+ }
143
+ ```
144
+
145
+ Our [SciPy paper](https://proceedings.scipy.org/articles/NRPV2311), detailing
146
+ the motivation and approach behind Jupyter Widget ecosystem compatability:
147
+
148
+ ```bibtex
149
+ @inproceedings{manz2024notebooks,
150
+ title = {Any notebook served: authoring and sharing reusable interactive widgets},
151
+ copyright = {https://creativecommons.org/licenses/by/4.0/},
152
+ url = {https://doi.curvenote.com/10.25080/NRPV2311},
153
+ doi = {10.25080/NRPV2311},
154
+ urldate = {2024-10-07},
155
+ booktitle = {Proceedings of the 23rd {Python} in {Science} {Conference}},
156
+ author = {Manz, Trevor and Gehlenborg, Nils and Abdennur, Nezar},
157
+ month = jul,
158
+ year = {2024},
159
+ }
160
+ ```
161
+ -->
162
+
163
+ ## License
164
+
165
+ [MIT](https://github.com/vuepy/vuepy/blob/master/LICENSE)
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,42 @@
1
+ # coding: utf-8
2
+ """Setup script for vuepy"""
3
+
4
+ import os.path
5
+
6
+ from setuptools import find_packages
7
+ from setuptools import setup
8
+
9
+ # The directory containing this file
10
+ HERE = os.path.realpath(os.path.dirname(__file__))
11
+
12
+ # The text of the README file
13
+ with open(os.path.join(HERE, "README.md")) as fid:
14
+ README = fid.read()
15
+
16
+ # This call to setup() does all the work
17
+ setup(
18
+ name="vuepy-core",
19
+ version="0.1.8-alpha1",
20
+ description="Vue.py is a progressive, incrementally-adoptable Python framework for building UI on the Jupyter Notebook.",
21
+ long_description=README,
22
+ long_description_content_type="text/markdown",
23
+ url="https://www.vuepy.org",
24
+ keywords=["vue", "Web UI", "MVVM"],
25
+ author="vuepy.org",
26
+ author_email="leilux.dev@gmail.com",
27
+ license="MIT",
28
+ classifiers=[
29
+ "License :: OSI Approved :: MIT License",
30
+ "Programming Language :: Python :: 3.7",
31
+ ],
32
+ python_requires='>=3.7',
33
+ packages=find_packages('src', exclude=('*widgets*', 'vuepy2')),
34
+ package_dir={'': 'src'},
35
+ include_package_data=True,
36
+ install_requires=[
37
+ "ipywidgets",
38
+ "markdown",
39
+ "anywidget",
40
+ ],
41
+ entry_points={"console_scripts": ["vuepy=vuepy.__main__:main"]},
42
+ )
@@ -0,0 +1,9 @@
1
+ # ---------------------------------------------------------
2
+ # Copyright (c) vuepy.org. All rights reserved.
3
+ # ---------------------------------------------------------
4
+ from ipywui.comps import *
5
+ from ipywui.core import IPywidgetsComponent
6
+ from ipywui.core import wui
7
+ from vuepy.version import VERSION
8
+
9
+ __version__ = VERSION
@@ -0,0 +1,21 @@
1
+ <template>
2
+ <slot></slot>
3
+ </template>
4
+
5
+ <script>
6
+ export default {
7
+ name: "Accordion",
8
+ props: {
9
+ selected_index: {
10
+ type: Number,
11
+ },
12
+ style: {
13
+ type: String,
14
+ },
15
+ },
16
+ }
17
+ </script>
18
+
19
+ <style scoped>
20
+
21
+ </style>
@@ -0,0 +1,16 @@
1
+ <template>
2
+ <slot></slot>
3
+ </template>
4
+
5
+ <script>
6
+ export default {
7
+ name: "AccordionItem",
8
+ props: {
9
+ title: String,
10
+ }
11
+ }
12
+ </script>
13
+
14
+ <style scoped>
15
+
16
+ </style>
@@ -0,0 +1,38 @@
1
+ <template>
2
+ <div>
3
+ <slot name="header"></slot>
4
+ <slot name="left_sidebar"></slot>
5
+ <slot name="right_sidebar"></slot>
6
+ <slot name="center"></slot>
7
+ <slot name="footer"></slot>
8
+ </div>
9
+
10
+ </template>
11
+
12
+ <script>
13
+ export default {
14
+ name: 'AppLayout',
15
+ props: {
16
+ width: {
17
+ type: String,
18
+ },
19
+ height: {
20
+ type: String,
21
+ },
22
+ // [3, 3, 1]
23
+ // [1, 5, '60px']
24
+ pane_widths: {
25
+ type: Array,
26
+ default: () => []
27
+ },
28
+ pane_heights: {
29
+ type: Array,
30
+ default: () => []
31
+ },
32
+ }
33
+ }
34
+ </script>
35
+
36
+ <style scoped>
37
+
38
+ </style>
@@ -0,0 +1,19 @@
1
+ <template>
2
+ <slot></slot>
3
+ </template>
4
+
5
+ <script>
6
+ export default {
7
+ name: 'Box',
8
+ props: {
9
+ children: {
10
+ type: Array,
11
+ default: () => []
12
+ }
13
+ }
14
+ }
15
+ </script>
16
+
17
+ <style scoped>
18
+
19
+ </style>
@@ -0,0 +1,47 @@
1
+ <template>
2
+
3
+ </template>
4
+
5
+ <script>
6
+ export default {
7
+ name: 'Button',
8
+ props: {
9
+ label: {
10
+ type: String,
11
+ default: ''
12
+ },
13
+ icon: String,
14
+ type: {
15
+ type: String,
16
+ default: '',
17
+ validator: function (value) {
18
+ return ['success', 'info', 'warning', 'danger', ''].includes(value)
19
+ },
20
+ },
21
+ tooltip: {
22
+ type: String,
23
+ default: ''
24
+ },
25
+ loading: {
26
+ type: Boolean,
27
+ default: false
28
+ },
29
+ 'loading-icon': {
30
+ type: String,
31
+ default: 'fa-spinner'
32
+ },
33
+ disabled: {
34
+ type: Boolean,
35
+ default: false
36
+ },
37
+ style: {
38
+ // background-color, font-family, font-size, font-style, font-variant, font-weight, color, text-decoration
39
+ type: string,
40
+ },
41
+ }
42
+ }
43
+ </script>
44
+
45
+ <style scoped>
46
+
47
+ </style>
@@ -0,0 +1,38 @@
1
+ <template>
2
+
3
+ </template>
4
+
5
+ <script>
6
+ // https://ipywidgets.readthedocs.io/en/latest/examples/Widget%20List.html#checkbox
7
+ // https://element-plus.org/zh-CN/component/checkbox.html
8
+ export default {
9
+ name: "Checkbox",
10
+ props: {
11
+ value: {
12
+ type: Boolean,
13
+ default: false
14
+ },
15
+ label: {
16
+ type: String,
17
+ default: ''
18
+ },
19
+ disabled: {
20
+ type: Boolean,
21
+ default: false
22
+ },
23
+ indent: {
24
+ type: Boolean,
25
+ default: true,
26
+ },
27
+ style: {
28
+ // background, description-width
29
+ type: string,
30
+ },
31
+ }
32
+
33
+ }
34
+ </script>
35
+
36
+ <style scoped>
37
+
38
+ </style>
@@ -0,0 +1,25 @@
1
+ <template>
2
+ <slot></slot>
3
+ </template>
4
+
5
+ <script>
6
+ export default {
7
+ name: "Clipboard",
8
+ props: {
9
+ tag: {
10
+ type: String,
11
+ default: 'div',
12
+ },
13
+ copy: {
14
+ type: Object,
15
+ },
16
+ },
17
+ emits: [
18
+ 'copy',
19
+ ]
20
+ }
21
+ </script>
22
+
23
+ <style scoped>
24
+
25
+ </style>
@@ -0,0 +1,23 @@
1
+ <template>
2
+ <slot></slot>
3
+ </template>
4
+
5
+ <script>
6
+ export default {
7
+ name: "Col",
8
+ props: {
9
+ span: {
10
+ type: Number,
11
+ default: 24,
12
+ },
13
+ offset: {
14
+ type: Number,
15
+ default: 0,
16
+ },
17
+ }
18
+ }
19
+ </script>
20
+
21
+ <style scoped>
22
+
23
+ </style>