- Update to 0.9.13
* Improve legacy ESM deprecation notice with widget provenance
and Python migration instruction (#609)
- Release 0.9.12
* Add IPython Cell Magic for HMR (#594). New %%vfile cell magic
for prototyping widgets in notebooks. Enables syntax
highlighting and anywidget's Hot Module Replacement (HMR)
directly within the notebook. Previously, front-end code had to
be inline strings or file paths, causing loss of widget state
when editing inline-strings in notebooks. The new %%vfile cell
magic allows editing front-end code within the notebook with
live reloading on cell re-execution. Use %%vfile <filename> to
create a virtual file for either JavaScript or CSS, and use
vfile:<filename> in _esm or _css attributes of an AnyWidget
subclass to reference the virtual file. Anywidget applies HMR
updates automatically on cell re-execution.
- Release 0.9.11
* Relax version pinning for anywidget front end (#521)
* Adopted ~major.minor.* notation for more flexible version
compatibility in the front end, mirroring practices improve
compatability in environments where bumping the front-end
versions is not possible for end users (i.e., JupyterHub). This
change is intended to enhance adaptability without causing
disruptions. If issues arise, please report them on our issues
page.
OBS-URL: https://build.opensuse.org/request/show/1197745
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-anywidget?expand=0&rev=11
* Improve legacy ESM deprecation notice with widget provenance
and Python migration instruction (#609)
- Release 0.9.12
* Add IPython Cell Magic for HMR (#594). New %%vfile cell magic
for prototyping widgets in notebooks. Enables syntax
highlighting and anywidget's Hot Module Replacement (HMR)
directly within the notebook. Previously, front-end code had to
be inline strings or file paths, causing loss of widget state
when editing inline-strings in notebooks. The new %%vfile cell
magic allows editing front-end code within the notebook with
live reloading on cell re-execution. Use %%vfile <filename> to
create a virtual file for either JavaScript or CSS, and use
vfile:<filename> in _esm or _css attributes of an AnyWidget
subclass to reference the virtual file. Anywidget applies HMR
updates automatically on cell re-execution.
- Release 0.9.11
* Relax version pinning for anywidget front end (#521)
* Adopted ~major.minor.* notation for more flexible version
compatibility in the front end, mirroring practices improve
compatability in environments where bumping the front-end
versions is not possible for end users (i.e., JupyterHub). This
change is intended to enhance adaptability without causing
disruptions. If issues arise, please report them on our issues
page.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-anywidget?expand=0&rev=25
- Update to 0.9.10
* fix: Bring back anywidget.json to support notebook v6 discovery
(#553)
- Releases 0.9.4 to 0.9.9
* Make a blanket _repr_mimbundle_ implementation (#546)
* experimental Ensure anywidget.experimental.command is called
with self (#545)
* experimental Replace invoke timeout with more flexible
AbortSignal (#540)
* Refactor AnyWidget command registration (#526)
* feat: Suppress errors when inspecting widget for commands
(#522)
* Add experimental invoke API to call Python functions from the
front end and (#453) await the response.
* Bumped dependencies
OBS-URL: https://build.opensuse.org/request/show/1172013
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-anywidget?expand=0&rev=10
* fix: Bring back anywidget.json to support notebook v6 discovery
(#553)
- Releases 0.9.4 to 0.9.9
* Make a blanket _repr_mimbundle_ implementation (#546)
* experimental Ensure anywidget.experimental.command is called
with self (#545)
* experimental Replace invoke timeout with more flexible
AbortSignal (#540)
* Refactor AnyWidget command registration (#526)
* feat: Suppress errors when inspecting widget for commands
(#522)
* Add experimental invoke API to call Python functions from the
front end and (#453) await the response.
* Bumped dependencies
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-anywidget?expand=0&rev=22
- Update to 0.9.0
* Require ANYWIDGET_HMR to opt-in to HMR during development
* Introduce front-end widget lifecycle methods (#395)
* Deprecation Notice: Exporting a render from the front-end
widget will trigger a deprecation notice in the browser
console. The preferred way to define a widget's front-end code
is now with a default object export.
* These methods introduce lifecycle hooks for widget developers:
- initialize: is executed once in the lifetime of a widget. It
has access to the only the model to setup non-view event
handlers or state to share across views.
- render: is executed once per view, or for each notebook
output cell. It has access to the model and a unique el DOM
element. This method should be familiar and is used to setup
event handlers or access state specific to that view.
* Fix serialization of layout trait (#426)
- Add anywidget-pr439-py312mock.patch gh#manzt/anywidget#439
OBS-URL: https://build.opensuse.org/request/show/1145690
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-anywidget?expand=0&rev=7
* Require ANYWIDGET_HMR to opt-in to HMR during development
* Introduce front-end widget lifecycle methods (#395)
* Deprecation Notice: Exporting a render from the front-end
widget will trigger a deprecation notice in the browser
console. The preferred way to define a widget's front-end code
is now with a default object export.
* These methods introduce lifecycle hooks for widget developers:
- initialize: is executed once in the lifetime of a widget. It
has access to the only the model to setup non-view event
handlers or state to share across views.
- render: is executed once per view, or for each notebook
output cell. It has access to the model and a unique el DOM
element. This method should be familiar and is used to setup
event handlers or access state specific to that view.
* Fix serialization of layout trait (#426)
- Add anywidget-pr439-py312mock.patch gh#manzt/anywidget#439
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-anywidget?expand=0&rev=15
- Update to 0.8.0
* Remove re-export of @anywidget/vite from main package (#398)
* Breaking change. If using our Vite plugin, please make sure to
install @anywidget/vite (rather than importing from anywidget
main package). This change allows us to version the Vite plugin
and anywidget's core separately.
// vite.config.mjs
import { defineConfig } from "vite";
-- import anywidget from "anywidget/vite";
++ import anywidget from "@anywidget/vite";
If you are already using @anywidget/vite, there are no changes
necessary.
OBS-URL: https://build.opensuse.org/request/show/1134918
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-anywidget?expand=0&rev=5
* Remove re-export of @anywidget/vite from main package (#398)
* Breaking change. If using our Vite plugin, please make sure to
install @anywidget/vite (rather than importing from anywidget
main package). This change allows us to version the Vite plugin
and anywidget's core separately.
// vite.config.mjs
import { defineConfig } from "vite";
-- import anywidget from "anywidget/vite";
++ import anywidget from "@anywidget/vite";
If you are already using @anywidget/vite, there are no changes
necessary.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-anywidget?expand=0&rev=11
- Update to 0.6.5
* fix: disable auto-reloading in dist-packages (#276)
* When the package is located in dist-packages, auto-reloading is
now disabled. This prevents unnecessary warnings when the
package is used in environments like Google Colab which are
likely non-development installs.
- Release 0.6.4
* fix: Keep support for binary traitlets (#274)
* Uses structuredClone to ensure binary data is automatically
serialized, correctly. Applies changes reverted in ipywidgets
8.1.1.
OBS-URL: https://build.opensuse.org/request/show/1113219
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-anywidget?expand=0&rev=2
* fix: disable auto-reloading in dist-packages (#276)
* When the package is located in dist-packages, auto-reloading is
now disabled. This prevents unnecessary warnings when the
package is used in environments like Google Colab which are
likely non-development installs.
- Release 0.6.4
* fix: Keep support for binary traitlets (#274)
* Uses structuredClone to ensure binary data is automatically
serialized, correctly. Applies changes reverted in ipywidgets
8.1.1.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-anywidget?expand=0&rev=3