Jeff Glass

Results 168 comments of Jeff Glass

A couple of edge details I'd propose: ### Exceptions in Display Should Show Up Onscreen I'd propose that if an object fails to render (e.g. if an exception is raised...

There's probably a design decision to be made here - how should PyScript handle arbitrary output to stdout? - Since [Python's print function](https://github.com/mozillazg/pypy/blob/1cb1c9de8cf0e9d33507273ec1562fd1df11ab1a/pypy/module/__builtin__/app_io.py#L87-L132) makes one write call to stdout _per...

The short answer is: There's a large overhaul happening to how Pyscript handles rendering to the screen vs outputting to the console (#622), so I expect issues like this to...

> I came across another similar problem (I'm refraining to create multiple issues). When you type 0.1 + 0.9 in py-repl, the output shows 1, instead of 1.0. I assume...

For what it's worth, you can disable the behavior of outputting the final expression, if you want, by ending the final line with a semicolon, which is sometimes useful if...

@zeki07k Probably best to open a new issue rather than adding to this one. What's the context of running this script? A tag on the page? Imported from another file?...

At the moment you can use javascript to add your event listener directly (though I think this is a good candidate for future features, hooking directly to `onchange` and `input`...

This was implemented by #561 - this issue can probably be closed.

Thanks @marimeireles - for anyone finding this issue in the future, as of release 2022.09.1, you can also use the [add_event_listener utility function](https://pyodide.org/en/stable/usage/api/python-api/ffi.html#pyodide.ffi.wrappers.add_event_listener) from Pyodide 21. It handles proxy creation...

Is anyone working on this? I'd be happy to give it a shot. For access and format, I'd suggest the following, similar to both sys.version_info and [what IPython does](https://github.com/ipython/ipython/blob/c97f6d2ebb9a2eee5bc6531ecaf96dcb0649dadd/IPython/core/release.py#L18-L33): :...