sier2 0.22__py3-none-any.whl → 0.23__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.
Potentially problematic release.
This version of sier2 might be problematic. Click here for more details.
sier2/panel/_panel.py
CHANGED
|
@@ -116,10 +116,8 @@ def interrupt_thread(tid, exctype):
|
|
|
116
116
|
#
|
|
117
117
|
ctypes.pythonapi.PyThreadState_SetAsyncExc(ctypes.c_ulong(tid), None)
|
|
118
118
|
raise SystemError('PyThreadState_SetAsyncExc failed')
|
|
119
|
-
|
|
120
|
-
def
|
|
121
|
-
"""Display the dag in a panel template."""
|
|
122
|
-
|
|
119
|
+
|
|
120
|
+
def _prepare_to_show(dag: Dag):
|
|
123
121
|
# Replace the default text-based context with the panel-based context.
|
|
124
122
|
#
|
|
125
123
|
dag._block_context = _PanelContext
|
|
@@ -220,10 +218,26 @@ def _show_dag(dag: Dag):
|
|
|
220
218
|
)
|
|
221
219
|
)
|
|
222
220
|
|
|
221
|
+
return template
|
|
222
|
+
|
|
223
|
+
def _show_dag(dag: Dag):
|
|
224
|
+
"""Display the dag in a panel template."""
|
|
225
|
+
|
|
226
|
+
template = _prepare_to_show(dag)
|
|
227
|
+
|
|
223
228
|
pn.state.on_session_destroyed(_quit)
|
|
224
229
|
|
|
225
230
|
template.show(threaded=False)
|
|
226
231
|
|
|
232
|
+
def _serveable_dag(dag: Dag):
|
|
233
|
+
"""Serve the dag in a panel template."""
|
|
234
|
+
|
|
235
|
+
template = _prepare_to_show(dag)
|
|
236
|
+
|
|
237
|
+
pn.state.on_session_destroyed(_quit)
|
|
238
|
+
|
|
239
|
+
template.servable()
|
|
240
|
+
|
|
227
241
|
class BlockCard(pn.Card):
|
|
228
242
|
"""A custom card to wrap around a block.
|
|
229
243
|
|
|
@@ -345,3 +359,6 @@ class PanelDag(Dag):
|
|
|
345
359
|
|
|
346
360
|
def show(self):
|
|
347
361
|
_show_dag(self)
|
|
362
|
+
|
|
363
|
+
def servable(self):
|
|
364
|
+
_serveable_dag(self)
|
|
@@ -8,9 +8,9 @@ sier2/_util.py,sha256=NmXI7QMSdkoSMe6EYJ-q8zI9iGJeMUto3g4314UVoM8,1932
|
|
|
8
8
|
sier2/_version.py,sha256=K5EdVMOTOHqhr-mIMjXhh84WHTSES2K-MJ_b--KryBM,71
|
|
9
9
|
sier2/panel/__init__.py,sha256=wDEf_v859flQX4udAVYZW1m79sfB1NIrI3pyNIpNiEM,29
|
|
10
10
|
sier2/panel/_feedlogger.py,sha256=tsrA8R2FZUecVY2egifVu2qosRfjccgvGRE0lLZSXZY,5270
|
|
11
|
-
sier2/panel/_panel.py,sha256=
|
|
11
|
+
sier2/panel/_panel.py,sha256=Q3a5Y1TTkhKzU5n0ZpmKH5MkSDOJAlidVz2Sq3F_cvc,12451
|
|
12
12
|
sier2/panel/_panel_util.py,sha256=omcLO0OIHhH00l9YXv09Qv8lnaY6VKsQ1F0qbsrs3vk,2450
|
|
13
|
-
sier2-0.
|
|
14
|
-
sier2-0.
|
|
15
|
-
sier2-0.
|
|
16
|
-
sier2-0.
|
|
13
|
+
sier2-0.23.dist-info/LICENSE,sha256=2AKq0yxLLDdGsj6xQuNjDPG5d2IbFWFGiB_cnCBtMp4,1064
|
|
14
|
+
sier2-0.23.dist-info/METADATA,sha256=ak30FoB2FhtDAuby3K97gbjc7NZkUgNXOPwCAlzYGNI,2492
|
|
15
|
+
sier2-0.23.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
16
|
+
sier2-0.23.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|