Releases: manzt/anywidget
Releases · manzt/anywidget
anywidget@0.9.6
Patch Changes
- Updated dependencies [
0c629955fee6379234fece8246c297c69f51ee79
]:- @anywidget/types@0.1.8
anywidget@0.9.5
Patch Changes
- feat: Suppress errors when inspecting widget for commands (#522)
@anywidget/types@0.1.8
Patch Changes
- Export
Experimental
type (#524)
@anywidget/svelte@0.0.7
Patch Changes
- Updated dependencies [
0c629955fee6379234fece8246c297c69f51ee79
]:- @anywidget/types@0.1.8
@anywidget/react@0.0.6
Patch Changes
-
Add
useExperimental
hook (#524) -
Updated dependencies [
0c629955fee6379234fece8246c297c69f51ee79
]:- @anywidget/types@0.1.8
anywidget@0.9.4
Patch Changes
-
Add experimental
invoke
API to call Python functions from the front end and (#453)
await the response.This removes a lot of boilerplate required for this pattern. The API is
experimental and opt-in only. Subclasses must use thecommand
to register
functions.class Widget(anywidget.AnyWidget): _esm = """ export default { async render({ model, el, experimental }) { let [msg, buffers] = await experimental.invoke("_echo", "hello, world"); console.log(msg); // "HELLO, WORLD" }, }; """ @anywidget.experimental.command def _echo(self, msg, buffers): # upper case the message return msg.upper(), buffers
-
Updated dependencies [
777fc268ee06fcf13e48a1c00cfdf90c14d786dc
]:- @anywidget/types@0.1.7
@anywidget/types@0.1.7
Patch Changes
-
Add experimental
invoke
API to call Python functions from the front end and (#453)
await the response.This removes a lot of boilerplate required for this pattern. The API is
experimental and opt-in only. Subclasses must use thecommand
to register
functions.class Widget(anywidget.AnyWidget): _esm = """ export default { async render({ model, el, experimental }) { let [msg, buffers] = await experimental.invoke("_echo", "hello, world"); console.log(msg); // "HELLO, WORLD" }, }; """ @anywidget.experimental.command def _echo(self, msg, buffers): # upper case the message return msg.upper(), buffers
@anywidget/svelte@0.0.6
Patch Changes
- Updated dependencies [
777fc268ee06fcf13e48a1c00cfdf90c14d786dc
]:- @anywidget/types@0.1.7
@anywidget/react@0.0.5
Patch Changes
- Updated dependencies [
777fc268ee06fcf13e48a1c00cfdf90c14d786dc
]:- @anywidget/types@0.1.7
@anywidget/deno@0.1.2
Patch Changes
- Prefer interface over type for WidgetOptions (#498)