syd 0.1.7__py3-none-any.whl → 1.0.0__py3-none-any.whl
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.
- syd/__init__.py +1 -1
- syd/flask_deployment/__init__.py +1 -1
- syd/flask_deployment/deployer.py +563 -238
- syd/flask_deployment/static/__init__.py +1 -0
- syd/flask_deployment/static/css/styles.css +280 -0
- syd/flask_deployment/static/js/viewer.js +795 -138
- syd/flask_deployment/templates/__init__.py +1 -0
- syd/flask_deployment/templates/index.html +34 -0
- syd/flask_deployment/testing_principles.md +4 -4
- syd/notebook_deployment/__init__.py +0 -1
- syd/notebook_deployment/deployer.py +124 -213
- syd/notebook_deployment/widgets.py +78 -60
- syd/parameters.py +299 -345
- syd/support.py +195 -0
- syd/viewer.py +310 -347
- syd-1.0.0.dist-info/METADATA +219 -0
- syd-1.0.0.dist-info/RECORD +19 -0
- syd/flask_deployment/components.py +0 -510
- syd/flask_deployment/static/css/viewer.css +0 -82
- syd/flask_deployment/templates/base.html +0 -29
- syd/flask_deployment/templates/viewer.html +0 -51
- syd/notebook_deployment/_ipympl_deployer.py +0 -258
- syd/plotly_deployment/__init__.py +0 -1
- syd/plotly_deployment/components.py +0 -531
- syd/plotly_deployment/deployer.py +0 -376
- syd-0.1.7.dist-info/METADATA +0 -120
- syd-0.1.7.dist-info/RECORD +0 -22
- {syd-0.1.7.dist-info → syd-1.0.0.dist-info}/WHEEL +0 -0
- {syd-0.1.7.dist-info → syd-1.0.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# This file exists to make the directory a proper Python package
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
/* Base styles */
|
|
2
|
+
body {
|
|
3
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
4
|
+
margin: 0;
|
|
5
|
+
padding: 0;
|
|
6
|
+
height: 100vh;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
background-color: #f5f5f5;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* Viewer container layout */
|
|
12
|
+
.viewer-container {
|
|
13
|
+
display: flex;
|
|
14
|
+
width: 100%;
|
|
15
|
+
height: 100vh;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* Adjust layout based on controls position */
|
|
19
|
+
.viewer-container[data-controls-position="left"] {
|
|
20
|
+
flex-direction: row;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.viewer-container[data-controls-position="right"] {
|
|
24
|
+
flex-direction: row-reverse;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.viewer-container[data-controls-position="top"] {
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.viewer-container[data-controls-position="bottom"] {
|
|
32
|
+
flex-direction: column-reverse;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* Controls container */
|
|
36
|
+
.controls-container {
|
|
37
|
+
background-color: white;
|
|
38
|
+
border-right: 1px solid #ddd;
|
|
39
|
+
overflow-y: auto;
|
|
40
|
+
padding: 20px;
|
|
41
|
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* Plot container */
|
|
45
|
+
.plot-container {
|
|
46
|
+
display: flex;
|
|
47
|
+
justify-content: center;
|
|
48
|
+
align-items: center;
|
|
49
|
+
background-color: white;
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
#plot-image {
|
|
54
|
+
object-fit: contain;
|
|
55
|
+
max-width: 100%;
|
|
56
|
+
max-height: 100%;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* Controls styling */
|
|
60
|
+
#controls-container {
|
|
61
|
+
display: grid;
|
|
62
|
+
grid-template-columns: 1fr;
|
|
63
|
+
gap: 10px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Control groups */
|
|
67
|
+
.control-group {
|
|
68
|
+
display: flex;
|
|
69
|
+
flex-direction: column;
|
|
70
|
+
padding: 10px;
|
|
71
|
+
border: 1px solid #eee;
|
|
72
|
+
border-radius: 4px;
|
|
73
|
+
background-color: white;
|
|
74
|
+
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.control-label {
|
|
78
|
+
font-weight: 600;
|
|
79
|
+
margin-bottom: 10px;
|
|
80
|
+
color: #333;
|
|
81
|
+
text-transform: capitalize;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/* Basic input styling */
|
|
85
|
+
input[type="text"],
|
|
86
|
+
input[type="number"] {
|
|
87
|
+
padding: 8px 12px;
|
|
88
|
+
border: 1px solid #ddd;
|
|
89
|
+
border-radius: 4px;
|
|
90
|
+
font-size: 14px;
|
|
91
|
+
width: 100%;
|
|
92
|
+
box-sizing: border-box;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* Range inputs */
|
|
96
|
+
input[type="range"] {
|
|
97
|
+
width: 100%;
|
|
98
|
+
height: 6px;
|
|
99
|
+
background: #ddd;
|
|
100
|
+
border-radius: 3px;
|
|
101
|
+
outline: none;
|
|
102
|
+
margin: 10px 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
input[type="range"]::-webkit-slider-thumb {
|
|
106
|
+
-webkit-appearance: none;
|
|
107
|
+
width: 18px;
|
|
108
|
+
height: 18px;
|
|
109
|
+
border-radius: 50%;
|
|
110
|
+
background: #3f51b5;
|
|
111
|
+
cursor: pointer;
|
|
112
|
+
border: 1px solid #2c3e90;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
input[type="range"]::-moz-range-thumb {
|
|
116
|
+
width: 18px;
|
|
117
|
+
height: 18px;
|
|
118
|
+
border-radius: 50%;
|
|
119
|
+
background: #3f51b5;
|
|
120
|
+
cursor: pointer;
|
|
121
|
+
border: 1px solid #2c3e90;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* Checkbox styling */
|
|
125
|
+
.checkbox-container {
|
|
126
|
+
display: flex;
|
|
127
|
+
align-items: center;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
input[type="checkbox"] {
|
|
131
|
+
width: 20px;
|
|
132
|
+
height: 20px;
|
|
133
|
+
margin-right: 10px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* Dropdown styling */
|
|
137
|
+
select {
|
|
138
|
+
width: 100%;
|
|
139
|
+
padding: 8px 12px;
|
|
140
|
+
border: 1px solid #ddd;
|
|
141
|
+
border-radius: 4px;
|
|
142
|
+
background-color: white;
|
|
143
|
+
font-size: 14px;
|
|
144
|
+
cursor: pointer;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.multiple-select {
|
|
148
|
+
min-height: 100px;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/* Button styling */
|
|
152
|
+
button {
|
|
153
|
+
padding: 10px 15px;
|
|
154
|
+
border: none;
|
|
155
|
+
border-radius: 4px;
|
|
156
|
+
background-color: #3f51b5;
|
|
157
|
+
color: white;
|
|
158
|
+
font-weight: 600;
|
|
159
|
+
cursor: pointer;
|
|
160
|
+
font-size: 14px;
|
|
161
|
+
transition: background-color 0.2s;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
button:hover {
|
|
165
|
+
background-color: #303f9f;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
button:active {
|
|
169
|
+
background-color: #1a237e;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/* Style for active buttons */
|
|
173
|
+
button.active {
|
|
174
|
+
background-color: #1a237e;
|
|
175
|
+
box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
|
|
176
|
+
transform: translateY(1px);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/* Helper text */
|
|
180
|
+
.helper-text {
|
|
181
|
+
margin-top: 5px;
|
|
182
|
+
font-size: 12px;
|
|
183
|
+
color: #666;
|
|
184
|
+
font-style: italic;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/* Range slider styles */
|
|
188
|
+
.range-container {
|
|
189
|
+
display: flex;
|
|
190
|
+
flex-direction: column;
|
|
191
|
+
width: 100%;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.range-inputs {
|
|
195
|
+
display: flex;
|
|
196
|
+
justify-content: space-between;
|
|
197
|
+
margin-bottom: 10px;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.range-input {
|
|
201
|
+
width: 70px;
|
|
202
|
+
font-size: 14px;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.range-slider-container {
|
|
206
|
+
position: relative;
|
|
207
|
+
margin: 10px 0;
|
|
208
|
+
background: linear-gradient(to right,
|
|
209
|
+
#ddd 0%,
|
|
210
|
+
#ddd var(--min-pos, 0%),
|
|
211
|
+
#3f51b5 var(--min-pos, 0%),
|
|
212
|
+
#3f51b5 var(--max-pos, 100%),
|
|
213
|
+
#ddd var(--max-pos, 100%),
|
|
214
|
+
#ddd 100%);
|
|
215
|
+
border-radius: 3px;
|
|
216
|
+
height: 18px;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.range-slider {
|
|
220
|
+
position: absolute;
|
|
221
|
+
top: 50%;
|
|
222
|
+
transform: translateY(-50%);
|
|
223
|
+
left: 0;
|
|
224
|
+
width: 100%;
|
|
225
|
+
pointer-events: none;
|
|
226
|
+
-webkit-appearance: none;
|
|
227
|
+
appearance: none;
|
|
228
|
+
background: transparent;
|
|
229
|
+
cursor: pointer;
|
|
230
|
+
margin: 0;
|
|
231
|
+
height: 18px;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/* Transparent Track for Webkit */
|
|
235
|
+
.range-slider::-webkit-slider-runnable-track {
|
|
236
|
+
background: transparent;
|
|
237
|
+
border: none;
|
|
238
|
+
border-radius: 3px;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/* Transparent Track for Firefox */
|
|
242
|
+
.range-slider::-moz-range-track {
|
|
243
|
+
background: transparent;
|
|
244
|
+
border: none;
|
|
245
|
+
border-radius: 3px;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.range-slider.active {
|
|
249
|
+
z-index: 2;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.range-slider::-webkit-slider-thumb {
|
|
253
|
+
pointer-events: auto;
|
|
254
|
+
-webkit-appearance: none;
|
|
255
|
+
appearance: none;
|
|
256
|
+
width: 18px;
|
|
257
|
+
height: 18px;
|
|
258
|
+
border-radius: 50%;
|
|
259
|
+
background: #3f51b5;
|
|
260
|
+
cursor: pointer;
|
|
261
|
+
border: 1px solid #2c3e90;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.range-slider::-moz-range-thumb {
|
|
265
|
+
pointer-events: auto;
|
|
266
|
+
width: 18px;
|
|
267
|
+
height: 18px;
|
|
268
|
+
border-radius: 50%;
|
|
269
|
+
background: #3f51b5;
|
|
270
|
+
cursor: pointer;
|
|
271
|
+
border: 1px solid #2c3e90;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.min-slider {
|
|
275
|
+
z-index: 1;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.max-slider {
|
|
279
|
+
z-index: 2;
|
|
280
|
+
}
|