mirror of
https://github.com/pyscript/pyscript.git
synced 2026-02-13 16:00:37 -05:00
* Move tests, create makefile action to run tests on examples * Correct import file for html files * Build environment for tests * Fix the CI * rearrange CI * fix find cmd and make sure we don't delete the folder implicitly * more rearranging * fix folder permissions and custom sed for subfolders * add toga wheels files * re-add missing file * mirror latest changes in alpha ci * fix find cmd * try different fix for find * remove redundant build Co-authored-by: mariana <marianameireles@protonmail.com> Co-authored-by: pww217 <pwilson@anaconda.com> Co-authored-by: Fabio Pliger <fabio.pliger@gmail.com>
33 lines
1.2 KiB
HTML
33 lines
1.2 KiB
HTML
<html>
|
|
<head>
|
|
<title>Panel Example</title>
|
|
<meta charset="iso-8859-1">
|
|
<link rel="icon" type="image/x-icon" href="./favicon.png">
|
|
<script type="text/javascript" src="https://cdn.bokeh.org/bokeh/release/bokeh-2.4.2.js"></script>
|
|
<script type="text/javascript" src="https://cdn.bokeh.org/bokeh/release/bokeh-widgets-2.4.2.min.js"></script>
|
|
<script type="text/javascript" src="https://cdn.bokeh.org/bokeh/release/bokeh-tables-2.4.2.min.js"></script>
|
|
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@holoviz/panel@0.13.1/dist/panel.min.js"></script>
|
|
<link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />
|
|
<script defer src="https://pyscript.net/alpha/pyscript.js"></script>
|
|
</head>
|
|
<py-env>
|
|
- bokeh
|
|
- numpy
|
|
- panel==0.13.1
|
|
</py-env>
|
|
<body>
|
|
<h1>Panel Example</h1>
|
|
<div id="simple_app"></div>
|
|
<py-script>
|
|
import panel as pn
|
|
|
|
slider = pn.widgets.FloatSlider(start=0, end=10, name='Amplitude')
|
|
|
|
def callback(new):
|
|
return f'Amplitude is: {new}'
|
|
|
|
pn.Row(slider, pn.bind(callback, slider)).servable(target='simple_app');
|
|
</py-script>
|
|
</body>
|
|
</html>
|