Document how to install packages that py-editor can use #1907
Replies: 2 comments 5 replies
-
Its the same issue for this example <html>
<head>
<script type="text/javascript" src="https://cdn.bokeh.org/bokeh/release/bokeh-3.3.2.js"></script>
<script type="text/javascript" src="https://cdn.bokeh.org/bokeh/release/bokeh-widgets-3.3.2.min.js"></script>
<script type="text/javascript" src="https://cdn.bokeh.org/bokeh/release/bokeh-tables-3.3.2.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@holoviz/panel@1.3.6/dist/panel.min.js"></script>
<script type="module" src="https://pyscript.net/releases/2023.12.1/core.js"></script>
</head>
<body>
<script type="py-editor" config='{"packages":["panel"}'>
import panel as pn
pn.extension()
slider = pn.widgets.IntSlider(name="Select a value", value=10, start=0, end=100)
pn.Column(
pn.rx("You selected: {}").format(slider),
).servable(target="editor")
</script>
<div id="editor"></div>
</body>
</html> |
Beta Was this translation helpful? Give feedback.
-
I think the main issue here is that you are not attaching a |
Beta Was this translation helpful? Give feedback.
-
To me it seems the
py-editor
cannot use the packages I've installed. Please support or document this and add an example to the pyscript examples.Beta Was this translation helpful? Give feedback.
All reactions