Skip to content

Releases: manzt/anywidget

create-anywidget@0.7.1

14 Jul 14:40
d603b5d
Compare
Choose a tag to compare

Patch Changes

  • Update templates to esbuild v0.23 (#620)

create-anywidget@0.7.0

24 Jun 20:36
82f7e21
Compare
Choose a tag to compare

Minor Changes

  • Upgrade templates to TypeScript v5.5 (#611)

anywidget@0.9.13

22 Jun 00:29
f4ea234
Compare
Choose a tag to compare

Patch Changes

  • Improve legacy ESM deprecation notice with widget provenance and Python migration instruction (#609)

@anywidget/vite@0.2.0

12 Jun 20:29
ff4e461
Compare
Choose a tag to compare

Minor Changes

  • Support anywidget lifecycle APIs (i.e., default export) 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.js file content is using the ESM syntax.
  • The closest package.json file has "type": "module", or use the .mjs/.mts extension, e.g. vite.config.mjs or vite.config.mts.

create-anywidget@0.6.3

28 May 12:37
578d956
Compare
Choose a tag to compare

Patch Changes

  • Bump esbuild to 0.21.4 (#599)

anywidget@0.9.12

28 May 12:37
578d956
Compare
Choose a tag to compare

Patch Changes

  • 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.

    In[1]:

    %load_ext anywidget

    In[2]:

    %%vfile index.js
    export default {
      render({ model, el }) {
        el.innerHTML = `<h1>Hello, ${model.get("name")}!</h1>`;
      }
    }

    In[3]:

    import anywidget
    import traitlets
    
    class Widget(anywidget.AnyWidget):
        _esm = "vfile:index.js"
        name = traitlets.Unicode("world").tag(sync=True)
    
    Widget()

create-anywidget@0.6.2

22 May 21:13
7484238
Compare
Choose a tag to compare

Patch Changes

  • Bump esbuild version (#584)

anywidget@0.9.11

12 May 19:02
b4557b3
Compare
Choose a tag to compare

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.

create-anywidget@0.6.1

11 May 19:39
88076fa
Compare
Choose a tag to compare

Patch Changes

  • Simplify default CSS class names (#576)

create-anywidget@0.6.0

11 May 19:22
5e38089
Compare
Choose a tag to compare

Minor Changes

  • Rename Python Counter class to Widget (#574)