(func, args, kwargs, result_queue)
| 69 | # but with shard sizes of 1), but running sphinx gallery for each file has a |
| 70 | # ~5min overhead, resulting in the entire suite taking ~2x time |
| 71 | def call_fn(func, args, kwargs, result_queue): |
| 72 | try: |
| 73 | result = func(*args, **kwargs) |
| 74 | result_queue.put((True, result)) |
| 75 | except Exception as e: |
| 76 | result_queue.put((False, str(e))) |
| 77 | |
| 78 | |
| 79 | def call_in_subprocess(func): |