Maarten Breddels

Results 944 comments of Maarten Breddels

The idea of ipyreact and (anywidget) is that you don't need to use npm/webpack (although you could generate a esm bundle probably). However, it's weird it does not work... I'm...

It's getting them from esm.sh (watch your browser network tab to see them being downloaded on the fly) This is not ipyreact, it's ES modules (esm) feature of browsers.

yeah, saw that as well, but that is probably not related, although seems like some kind of packaging issue in tldraw.

Note that React is already 'baked' in, because we need to run react. It's currently shipping with 18 only.

It ships sucrase, but it’s all happening in the frontend. You can build on top of ipyreact, but no bundle in created at any point. It’s only the ipyreact bundle,...

Maybe this is not fully answered yet, reopened.

Hi Charl, sharing how I debugged this: I opened the bundle file and searched for `require("react` Which gave me: This tell me that this is a dead end. if esbuild...

> If I run esbuild _without_ the `--external:...` params to exclude react (just to check!), the `define_module()` is successful, but the cell that's supposed to show the BoxWidget gives the...

Note that trailets doesn’t detect mutations of objects, only assignment. This reflect the Python language. Not something we can change I think. On Fri, 28 Apr 2023 at 12:01, Jan-Hendrik...