Trevor Manz
Trevor Manz
Thanks for the response. I merged the current magic implementation and it will be available in the next release. Need to find the time to write docs and maybe a...
Released in [v0.9.12](https://github.com/manzt/anywidget/releases/tag/anywidget%400.9.12)! I'm going to close this issue for now. Hoping to get some nicer syntax highlighting in a follow up.
Hmm, yah this is due to the fact binary data isn't serializable to JSON (without base64 encoding it). The `_get_pydanic_state_v2` is just a helper function for pydantic. Maybe in this...
> Though removing mode="json" might have regressions for other data types, like dates? Hmm, I'm not _too_ worried about the regression of other date types. All of this stuff is...
Since `bytes` is a python builtin, I think my preference would be use `model_dump()` and make someone manually handle higher level objects (just like how one would need to make...
Sorry, I was referring to [`builtins`](https://docs.python.org/3/library/builtins.html), not built-in modules in the standard library. In particular, inspired by [`msgspec.to_builtins`](https://jcristharif.com/msgspec/api.html#msgspec.to_builtins). ```python import builtins builtins.datetime # AttributeError: module 'builtins' has no attribute 'datetime'...
I am not able to reproduce this error locally. Could you share more information about your system/environment in which you are running the notebook? ` npx envinfo --system --browsers` ```sh...
You shouldn't need to publish a second package. You could easily create an HTML template and inline the JavaScript [like in Gos](https://github.com/gosling-lang/gos/blob/5709ee2b916ddabb711352f75b01e6749cb99621/gosling/display.py#L11-L77) and write the spec directly: ```python _HTML_TEMPLATE =...
Interesting question. I hadn't considered it, are the offsets you're indexing beyond the largest you can specify with `Number`? Or is this just a convenience to coerce a bigint into...
Right, I was assuming that would be a problem. I can see the value of being able slice the absolute space of the array using bigint, but we need to...