Hood Chatham

Results 1082 comments of Hood Chatham

Minimal reproduction is: ``` import asyncio async def main(): raise Exception("hi") asyncio.ensure_future(main()) ``` There isn't even an error in the console...

> Interesting how did you test in Pyodide? 1. Go to https://pyodide.org/en/0.22.1/console.html and wait for it to finish loading 2. Open the browser console (ctrl+shift+J in Chrome) 3. Paste the...

Oh wait, never mind I seem to get the same problem in Pyodide. So it **is** an upstream problem! Eventually it says: ``` Task exception was never retrieved future: ```

You can do: ```py import asyncio import traceback async def main(): raise Exception("hi") def maybe_format_err(fut): exc = fut.exception() if exc: traceback.print_exception(exc) asyncio.ensure_future(main()).add_done_callback(maybe_format_err) ``` I thought you would be able to...

Interestingly there appears to be a bug in Pyodide v0.22.1 which was fixed (accidentally??) in v0.23.0. Probably would be good to figure out what's going on there and add a...

> import shared in both? This is detrimental to load time in the main thread case...

I don't think you're going to make that test faster. Just by the name "test_panel_kmeans" it sounds expensive. We could just... not run it. I don't see why PyScript should...

Isn't `py-onClick` supposed to indicate Python code? Why would it be able to see a JavaScript function?

Yes, `set_exception_handler` is exactly for this purpose. > PyScript's warning banner mechanism relies on the errors occurring during the duration of a PyScript tag. How are errors in event listeners...

> is it the test that's 'flaky', or is it ... Some pedantry: Yes this test is flaky. A flaky test is a test that passes usually but not always....