Recent Releases of anywidget
anywidget - @anywidget/vite@0.2.2
Patch Changes
- Normalize possible AFM inputs to an AFM object when using Vite HMR. (#881)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] 7 months ago
anywidget - @anywidget/svelte@0.1.0
This release deliberately contains backwards-incompatible changes. To avoid automatically picking up releases like this, you should either be pinning the exact version of @anywidget/svelte in your package.json file or be using a version range syntax that only accepts patch upgrades such as ~0.0.1.
Migrate to Svelte 5 signals API (#869)
The
@anywidget/sveltenow uses Svelte 5's new runes reactivity system (aka signals). The context-based implementation has been replaced with reactive model bindings usingcreateSubscriber.Update your Svelte dependency to version 5:
bash npm install svelte@^5.0.0Ensure Svelte 5 runes are enabled in your bundler configuration:
js // rolldown.config.js or rollup.config.js svelte({ compilerOptions: { runes: true, }, });The previous API used Svelte 4 and exposed model values via the
storesproxy:```svelte
```
With Svelte 5,
@anywidget/sveltenow uses direct reactive bindings and the$props()rune:```svelte
```
This is a breaking change. The old stores API and getContext-based access are no longer supported. You must update your components to use the new bindings prop via
$props().See manzt/ipyfoo-svelte for a complete example.
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] 9 months ago
anywidget - create-anywidget@0.8.3
Patch Changes
- Upgrade
@clack/promptsto avoid using placeholder values (#868)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] 9 months ago
anywidget - @anywidget/vue@0.1.0
Minor Changes
Initial release (
1c5f07a)Thanks to @aryan02420, we now support Vue with an official framework bridge—similar to our React and Svelte bindings.
Unlike
@anywidget/react, theuseModelStatehook returns a VueShallowRefthat you can update directly (e.g.value++), aligning with Vue’s reactivity model.```javascript // src/index.js import { createRender } from "@anywidget/vue"; import CounterWidget from "./CounterWidget.vue";
const render = createRender(CounterWidget); export default { render }; ```
```html <!-- src/CounterWidget.vue -->
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] 11 months ago
anywidget - create-anywidget@0.8.2
Patch Changes
- Pin
@anywidget/react~v0.2 (#837)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 1 year ago
anywidget - @anywidget/react@0.2.0
Minor Changes
Use
React.useSyncExternalStoreforuseModelStatehook implementation (34f01a3)The
React.useSyncExternalStorehook was introduced in React 18 and is designed for external sources of truth, like the anywidgetmodel. It ensures a shared source within the component tree, and consistent behavior during concurrent rendering, avoiding subtle bugs present inuseEffect-based patterns.This is marked as a breaking change to signal the internal shift in behavior, though in practice it should be considered an improvement. Most users should not notice any difference, aside from more consistent updates.
Mirror
React.useStateAPI inuseModelStatehook (34f01a3)Aligns the
useModelStatehook more closely with theReact.useStateAPI by allowing a callback function in the state setter.
Patch Changes
- Add generic type parameter to
useModelhook (34f01a3)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 1 year ago
anywidget - anywidget@0.9.18
Patch Changes
- experimental Fix descriptor API to send initial state on comm creation (#832)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 1 year ago
anywidget - anywidget@0.9.17
Patch Changes
Refactor: Manage front-end HMR runtimes with web
AbortController(#826)Improve robustness of HMR file watching (#831)
Handles cases where atomic saves (e.g. by VS Code) temporarily delete and replace the file. The watcher now ensures the file does not exist on
Change.deleteevents, preventing unexpected drops in hot reload behavior.
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 1 year ago
anywidget - anywidget@0.9.16
Patch Changes
- Fix: Use temporary polyfill for
Promise.withResolversfor Safari compat (#824)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 1 year ago
anywidget - create-anywidget@0.8.1
Patch Changes
- Import
RenderPropsinstead ofRenderContextwhen scaffolding vanilla TS project (#821)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 1 year ago
anywidget - create-anywidget@0.8.0
Minor Changes
- Upgrade TypeScript to v5.8 (#817)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 1 year ago
anywidget - anywidget@0.9.15
Patch Changes
- Move
@anywidget/typesfrom devDependencies to dependencies (#812)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 1 year ago
anywidget - anywidget@0.9.14
Patch Changes
- Comm messages sent quickly after the creation of a widget could be lost because custom widgets' models were loaded asynchronously (#804)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 1 year ago
anywidget - create-anywidget@0.7.7
Patch Changes
- Use React 19 in React templates (#765)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 1 year ago
anywidget - @anywidget/react@0.1.0
Minor Changes
- Support React 19 (#763)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 1 year ago
anywidget - create-anywidget@0.7.6
Patch Changes
- Upgrade TypeScript to v5.7 (#754)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 1 year ago
anywidget - create-anywidget@0.7.5
Patch Changes
- Support
uvand update project instructions (#711)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 1 year ago
anywidget - create-anywidget@0.7.3
Patch Changes
- Bump TypeScript to 5.6 (#680)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 1 year ago
anywidget - create-anywidget@0.7.2
Patch Changes
Upgrade framework bridges (
3a5b386295d6aae7a69c5396f04b70e25c9b8f58)Bump types versions (#675)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 1 year ago
anywidget - @anywidget/types@0.2.0
Minor Changes
Makes explicit WidgetManager interface (#670)
Drops
@jupyter-widgets/baseas a dependency and instead makes an explicit interface forAnyModel.widget_manager. Right now we only supportwidget_manager.get_model, so having the other methods on the interface was misleading (leading to issues around.create_viewnot being supported).
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 1 year ago
anywidget - @anywidget/svelte@0.0.10
Patch Changes
- Updated dependencies [
9c10efe9fd44f779fc2a5821c0e6a28ab0f4edad]:- @anywidget/types@0.2.0
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 1 year ago
anywidget - @anywidget/react@0.0.8
Patch Changes
- Updated dependencies [
9c10efe9fd44f779fc2a5821c0e6a28ab0f4edad]:- @anywidget/types@0.2.0
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 1 year ago
anywidget - @anywidget/svelte@0.0.9
Patch Changes
- Ensure all src files are included in the package release (#666)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 1 year ago
anywidget - create-anywidget@0.7.1
Patch Changes
- Update templates to esbuild v0.23 (#620)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 1 year ago
anywidget - create-anywidget@0.7.0
Minor Changes
- Upgrade templates to TypeScript v5.5 (#611)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] almost 2 years ago
anywidget - anywidget@0.9.13
Patch Changes
- Improve legacy ESM deprecation notice with widget provenance and Python migration instruction (#609)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] almost 2 years ago
anywidget - @anywidget/vite@0.2.0
Minor Changes
- Support anywidget lifecycle APIs (i.e.,
defaultexport) in Vite plugin. (#598)
Drops support for CJS-based usage of the plugin. The CJS Node API of Vite is deprecated in v5. Follow the migration guide for more details:
In a basic Vite project, make sure: - The
vite.config.jsfile content is using the ESM syntax. - The closestpackage.jsonfile has"type": "module", or use the.mjs/.mtsextension, e.g.vite.config.mjsorvite.config.mts.
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] almost 2 years ago
anywidget - anywidget@0.9.12
Patch Changes
Add IPython Cell Magic for HMR (#594)
New
%%vfilecell 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
%%vfilecell 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 usevfile:<filename>in_esmor_cssattributes of anAnyWidgetsubclass to reference the virtual file. Anywidget applies HMR updates automatically on cell re-execution.In[1]:python %load_ext anywidgetIn[2]:js %%vfile index.js export default { render({ model, el }) { el.innerHTML = `<h1>Hello, ${model.get("name")}!</h1>`; } }In[3]:```py import anywidget import traitlets
class Widget(anywidget.AnyWidget): _esm = "vfile:index.js" name = traitlets.Unicode("world").tag(sync=True)
Widget() ```
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] almost 2 years ago
anywidget - create-anywidget@0.6.3
Patch Changes
- Bump esbuild to 0.21.4 (#599)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] almost 2 years ago
anywidget - create-anywidget@0.6.2
Patch Changes
- Bump esbuild version (#584)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] almost 2 years ago
anywidget - anywidget@0.9.11
Patch Changes
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.
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] almost 2 years ago
anywidget - create-anywidget@0.6.1
Patch Changes
- Simplify default CSS class names (#576)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] almost 2 years ago
anywidget - create-anywidget@0.6.0
Minor Changes
- Rename Python Counter class to Widget (#574)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] almost 2 years ago
anywidget - create-anywidget@0.5.9
Patch Changes
- Bump
typescript,react,react-dom(#567)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] almost 2 years ago
anywidget - anywidget@0.9.10
Patch Changes
- fix: Bring back
anywidget.jsonto support notebook v6 discovery (#553)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] almost 2 years ago
anywidget - create-anywidget@0.5.8
Patch Changes
- Bump dependencies (#547)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] almost 2 years ago
anywidget - anywidget@0.9.9
Patch Changes
Make a blanket
_repr_mimbundle_implementation (#546)ipywidgetsv7 and v8 switched from using_ipython_display_to_repr_mimebundle_for rendering widgets in Jupyter. This means that depending on which version ofipywidgetsused (v7 in Google Colab), anywidget end users need to handle the behavior of both methods. This change adds a blanket implementation of_repr_mimebundle_so that it is easier to wrap ananywidget:```python import anywidget import traitlets
class Widget(anywidget.AnyWidget): _esm = "index.js" _css = "style.css" value = traitlets.Unicode("Hello, World!").tag(sync=True)
class Wrapper: def init(self): self._widget = Widget()
# Easy to forward the underlying widget's repr to the wrapper class, across all versions of ipywidgets def _repr_mimebundle_(self, include=None, exclude=None): return self._widget._repr_mimebundle_(include, exclude)```
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] almost 2 years ago
anywidget - @anywidget/types@0.1.9
Patch Changes
experimental Replace invoke timeout with more flexible
AbortSignal(#540)This allows more flexible control over aborting the invoke request, including delegating to third-party libraries that manage cancellation.
```js export default { async render({ model, el }) { const controller = new AbortController();
// Randomly abort the request after 1 second setTimeout(() => Math.random() < 0.5 && controller.abort(), 1000); const signal = controller.signal; model .invoke("echo", "Hello, world", { signal }) .then((result) => { el.innerHTML = result; }) .catch((err) => { el.innerHTML = `Error: ${err.message}`; });}, }; ```
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] almost 2 years ago
anywidget - @anywidget/react@0.0.7
Patch Changes
- Updated dependencies [
a4b0ec07b2b8937111487108e9b82daf3d9be2df]:- @anywidget/types@0.1.9
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] almost 2 years ago
anywidget - anywidget@0.9.8
Patch Changes
experimental Ensure anywidget.experimental.command is called with self (#545)
experimental Replace invoke timeout with more flexible
AbortSignal(#540)This allows more flexible control over aborting the invoke request, including delegating to third-party libraries that manage cancellation.
```js export default { async render({ model, el }) { const controller = new AbortController();
// Randomly abort the request after 1 second setTimeout(() => Math.random() < 0.5 && controller.abort(), 1000); const signal = controller.signal; model .invoke("echo", "Hello, world", { signal }) .then((result) => { el.innerHTML = result; }) .catch((err) => { el.innerHTML = `Error: ${err.message}`; });}, }; ```
Updated dependencies [
a4b0ec07b2b8937111487108e9b82daf3d9be2df]:- @anywidget/types@0.1.9
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] almost 2 years ago
anywidget - @anywidget/svelte@0.0.8
Patch Changes
- Updated dependencies [
a4b0ec07b2b8937111487108e9b82daf3d9be2df]:- @anywidget/types@0.1.9
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] almost 2 years ago
anywidget - anywidget@0.9.7
Patch Changes
- Refactor AnyWidget command registration (#526)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] almost 2 years ago
anywidget - @anywidget/types@0.1.8
Patch Changes
- Export
Experimentaltype (#524)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 2 years ago
anywidget - @anywidget/react@0.0.6
Patch Changes
Add
useExperimentalhook (#524)Updated dependencies [
0c629955fee6379234fece8246c297c69f51ee79]:- @anywidget/types@0.1.8
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 2 years ago
anywidget - @anywidget/svelte@0.0.7
Patch Changes
- Updated dependencies [
0c629955fee6379234fece8246c297c69f51ee79]:- @anywidget/types@0.1.8
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 2 years ago
anywidget - anywidget@0.9.6
Patch Changes
- Updated dependencies [
0c629955fee6379234fece8246c297c69f51ee79]:- @anywidget/types@0.1.8
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 2 years ago
anywidget - anywidget@0.9.5
Patch Changes
- feat: Suppress errors when inspecting widget for commands (#522)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 2 years ago
anywidget - create-anywidget@0.5.7
Patch Changes
- Update typings with experimental API (#518)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 2 years ago
anywidget - @anywidget/types@0.1.7
Patch Changes
Add experimental
invokeAPI 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 the
commandto register functions.```py 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```
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 2 years ago
anywidget - @anywidget/svelte@0.0.6
Patch Changes
- Updated dependencies [
777fc268ee06fcf13e48a1c00cfdf90c14d786dc]:- @anywidget/types@0.1.7
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 2 years ago
anywidget - @anywidget/react@0.0.5
Patch Changes
- Updated dependencies [
777fc268ee06fcf13e48a1c00cfdf90c14d786dc]:- @anywidget/types@0.1.7
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 2 years ago
anywidget - anywidget@0.9.4
Patch Changes
Add experimental
invokeAPI 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 the
commandto register functions.```py 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
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 2 years ago
anywidget - @anywidget/deno@0.1.2
Patch Changes
- Prefer interface over type for WidgetOptions (#498)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 2 years ago
anywidget - create-anywidget@0.5.6
Patch Changes
Fix README.md to point to static folder for un-bundled (#496)
Ignore
.venvfor Deno config and use defaults (rather than Trevor's preferences 🙃) (#496)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 2 years ago
anywidget - @anywidget/deno@0.1.1
Patch Changes
Publish package to
jsr:@anywidget/deno(#491)Deprecates https://deno.land/x/anywidget distribution for the preferred JavaScript Registry (https://jsr.io).
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 2 years ago
anywidget - @anywidget/deno@0.1.0
Minor Changes
- Switch to sync API to define widget (#487)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 2 years ago
anywidget - create-anywidget@0.5.5
Patch Changes
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 2 years ago
anywidget - create-anywidget@0.5.4
Patch Changes
- Change order of "Next steps" (npm install before git commands) (#476)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 2 years ago
anywidget - create-anywidget@0.5.3
Patch Changes
- Add development installation instructions in the generated READMEs (
08762a52f88b567942b44710320da65d0cb8ac06)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 2 years ago
anywidget - create-anywidget@0.5.2
Patch Changes
- Set
ANYWIDGET_HMR=1in demo notebook (#470)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 2 years ago
anywidget - @anywidget/types@0.1.6
Patch Changes
- Add
AnyWidgetdefinition (9aa8dcc8558e00e33fbe4506b68ae30113df3728)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 2 years ago
anywidget - @anywidget/svelte@0.0.5
Patch Changes
- Updated dependencies [
9aa8dcc8558e00e33fbe4506b68ae30113df3728]:- @anywidget/types@0.1.6
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 2 years ago
anywidget - @anywidget/react@0.0.4
Patch Changes
- Updated dependencies [
9aa8dcc8558e00e33fbe4506b68ae30113df3728]:- @anywidget/types@0.1.6
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 2 years ago
anywidget - anywidget@0.9.3
Patch Changes
- Updated dependencies [
9aa8dcc8558e00e33fbe4506b68ae30113df3728]:- @anywidget/types@0.1.6
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 2 years ago
anywidget - anywidget@0.9.2
Patch Changes
- Support Python 3.12 (#441)
- Add nicer error boundaries with stack traces (#445)
feat(experimental): Add
@dataclassdecorator (#222)```python from anywidget.experimental import dataclass
@dataclass(esm="index.js") class Counter: value: int = 0
Counter() ```
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 2 years ago
anywidget - create-anywidget@0.5.1
Patch Changes
- Add README.md to pyproject.toml (#437)
Scientific Software - Peer-reviewed
- Python
Published by manzt about 2 years ago
anywidget - anywidget@0.9.1
Patch Changes
- Use signals for HMR runtime (#438)
Scientific Software - Peer-reviewed
- Python
Published by manzt about 2 years ago
anywidget - @anywidget/types@0.1.5
Patch Changes
- Add
Initializemethod types (#395)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 2 years ago
anywidget - @anywidget/react@0.0.3
Patch Changes
- Updated dependencies [
6608992b8fe3a9f4eb7ebb2c8c5533febf26f4dd]:- @anywidget/types@0.1.5
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 2 years ago
anywidget - @anywidget/svelte@0.0.4
Patch Changes
- Updated dependencies [
6608992b8fe3a9f4eb7ebb2c8c5533febf26f4dd]:- @anywidget/types@0.1.5
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 2 years ago
anywidget - anywidget@0.9.0
Minor Changes
Require
ANYWIDGET_HMRto opt-in to HMR during development (ab25564045bbde8bc51ad55ebb09429fa5ca9157)Introduce front-end widget lifecycle methods (#395)
Deprecation Notice: Exporting a
renderfrom 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 adefaultobject export.js export default { initialize({ model }) { /* ... */ }, render({ model, el }) { /* ... */ }, };These methods introduce lifecycle hooks for widget developers:
-
initialize: is executed once in the lifetime of a widget. It has access to the only themodelto 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 themodeland a uniqueelDOM element. This method should be familiar and is used to setup event handlers or access state specific to that view.
The default export may also be a function which returns (a Promise for) this interface: This can be useful to setup some front-end specific state for the lifecycle of the widget.
js export default () => { // Create a history of all the changes to the "value" trait let valueHistory = []; return { initialize({ model }) { // Push the new changes to history model.on("change:value", () => valueHistory.push(model.get("value"))); }, render({ model, el }) { el.innerText = `The history is ${valueHistory}`; // Update each view to display the current history model.on("change:value", () => { el.innerText = `The history is ${valueHistory}`; }); }, }; };-
Patch Changes
Fix serialization of
layouttrait (#426)Updated dependencies [
6608992b8fe3a9f4eb7ebb2c8c5533febf26f4dd]:- @anywidget/types@0.1.5
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 2 years ago
anywidget - create-anywidget@0.5.0
Minor Changes
- Migrate to widget lifecycle hooks (#425)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 2 years ago
anywidget - create-anywidget@0.4.5
Patch Changes
feat: Add example.ipynb to all projects (#414)
feat: Rename template options with additional hints (#415)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 2 years ago
anywidget - anywidget@0.8.1
Patch Changes
- fix: Skip
Promiseserialization for ipywidget'slayout/styletraits (#412)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] about 2 years ago
anywidget - anywidget@0.8.0
Minor Changes
Remove re-export of
@anywidget/vitefrom main package (#398)Breaking change. If using our Vite plugin, please make sure to install
@anywidget/vite(rather than importing fromanywidgetmain package). This change allows us to version the Vite plugin and anywidget's core separately.diff // 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.
Patch Changes
- Updated dependencies [
ea6d34d042e29c01ec8ce125a756dabf5c6823c0]:- @anywidget/vite@0.1.2
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 2 years ago
anywidget - @anywidget/vite@0.1.2
Patch Changes
- Support Vite v5 (#389)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 2 years ago
anywidget - create-anywidget@0.4.4
Patch Changes
- Bump
@types/react-dom(#390)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 2 years ago
anywidget - create-anywidget@0.4.3
Patch Changes
- Update React dependency version (#370)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 2 years ago
anywidget - @anywidget/deno@0.0.5
Patch Changes
- feat: Allow Deno to check if display
inwidget (603b9e1)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 2 years ago
anywidget - create-anywidget@0.4.2
Patch Changes
- Upgrade dependencies (
01a79f6)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 2 years ago
anywidget - anywidget@0.7.1
Patch Changes
- feat: Raise Python error when file is missing (#345)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 2 years ago
anywidget - @anywidget/deno@0.0.4
Patch Changes
- Bump anywidget version to 0.7.0 (
525e3c8)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 2 years ago
anywidget - @anywidget/deno@0.0.3
Patch Changes
feat: Try to discover installed anywidget version (#326)
feat: Add Install/Uninstall scripts for widget front end (#329)
sh deno run -A https://deno.land/x/anywidget/install.ts
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 2 years ago
anywidget - anywidget@0.7.0
Minor Changes
feat(experimental)!: Require
includein_get_anywidget_statesignature (#317)Allows implementors to avoid re-serializing fields which aren't needed to send to the front end. This is a BREAKING change because it requires implementors of
_get_anywidget_stateto account forincludein the function signature.```python from dataclasses import dataclass, asdict from io import BytesIO
import polars as pl import psygnal
@psygnal.evented @dataclass class Foo: value: int df: pl.DataFrame
def getanywidgetstate(self, include: set[str] | None): data = asdict(self) if include and "df" in include: with BytesIO() as f: self.df.writeipc(f) data["df"] = f.getvalue() else: del data["df"] # don't serialize df to bytes return data ```
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 2 years ago
anywidget - @anywidget/deno@0.0.2
Patch Changes
- fix: Use current anywidget version in comms open message (#323)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 2 years ago
anywidget - @anywidget/deno@0.0.1
Patch Changes
- feat: make initial release (#319)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 2 years ago
anywidget - create-anywidget@0.4.1
Patch Changes
- fix: correctly detect bun as package manager (#282)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 2 years ago
anywidget - create-anywidget@0.4.0
Minor Changes
feat: Support Bun and prefer built-in bundler over
esbuild(#269)When running
bun create anywidget@latest, the resulting package.json scripts prefer the built-in bundler over esbuild. As a result, the vanilla JS template has no dependencies.sh bun create anywidget@latest
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 2 years ago
anywidget - anywidget@0.6.5
Patch Changes
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.
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 2 years ago
anywidget - anywidget@0.6.4
Patch Changes
fix: Keep support for binary traitlets (#274)
Uses
structuredCloneto ensure binary data is automatically serialized, correctly. Applies changes reverted inipywidgets8.1.1.
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 2 years ago
anywidget - create-anywidget@0.3.0
Minor Changes
feat: unify templating system within
create.js(#263)Allows for more dynamic templates and sharing of common Python setup between templates.
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 2 years ago
anywidget - create-anywidget@0.2.1
Patch Changes
feat: use
src/my_widget/staticdirectory for build assets (6e2cc42)fix: point esbuild to source in js folder (#260)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 2 years ago
anywidget - create-anywidget@0.2.0
Minor Changes
feat: move
package.jsonto template root directories (#256)This makes it more ergonomic to install JavaScript dependencies and start the development server.
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 2 years ago
anywidget - create-anywidget@0.1.3
Patch Changes
- fix: ensure templates have correct @anywidget/* versions (#257)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 2 years ago
anywidget - create-anywidget@0.1.2
Patch Changes
- fix: paths for tsconfig.json (#253)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 2 years ago
anywidget - create-anywidget@0.1.1
Patch Changes
- fix: ensure assets are checked in for JDoc template (#251)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 2 years ago
anywidget - create-anywidget@0.1.0
Minor Changes
feat: add vanilla template (#248)
feat: add Vanilla TS template (#248)
feat: add JSDoc TypeScript template (#250)
feat: add React TS template (#248)
Patch Changes
fix: safely write and rename files within an existing
.gitdirectory (#248)Thank you @kolibril13!
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 2 years ago
anywidget - @anywidget/svelte@0.0.3
Patch Changes
- fix: broken import in WrapperComponent (#219)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 2 years ago
anywidget - @anywidget/types@0.1.4
Patch Changes
- feat: expose the
IWidgetManagerfrom@jupyter-widgets/baseto render function. (f2dbdbf)
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 2 years ago
anywidget - anywidget@0.6.3
Patch Changes
feat: expose the
IWidgetManagerfrom@jupyter-widgets/baseto render function. (f2dbdbf)Updated dependencies [
f2dbdbf]:- @anywidget/types@0.1.4
Scientific Software - Peer-reviewed
- Python
Published by github-actions[bot] over 2 years ago