From 7db2164776b3ce4de66a29222860b67c1bb6c07a Mon Sep 17 00:00:00 2001 From: coastalwhite Date: Mon, 16 Sep 2024 09:33:13 +0200 Subject: [PATCH] inline doctest --- docs/src/python/user-guide/lazy/gpu.py | 4 ---- docs/user-guide/gpu-support.md | 4 +++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/src/python/user-guide/lazy/gpu.py b/docs/src/python/user-guide/lazy/gpu.py index 4946a7de3984..14a7de1fcc7a 100644 --- a/docs/src/python/user-guide/lazy/gpu.py +++ b/docs/src/python/user-guide/lazy/gpu.py @@ -60,7 +60,3 @@ print() print(q.collect()) # --8<- [end:fallback-result] - -# --8<-- [start:fallback-raise] -q.collect(engine=pl.GPUEngine(raise_on_fail=True)) -# --8<-- [end:fallback-raise] diff --git a/docs/user-guide/gpu-support.md b/docs/user-guide/gpu-support.md index 607d97bda42a..0c5c0c5b5176 100644 --- a/docs/user-guide/gpu-support.md +++ b/docs/user-guide/gpu-support.md @@ -96,7 +96,9 @@ When running in verbose mode, any queries that cannot execute on the GPU will is To disable fallback, and have the GPU engine raise an exception if a query is unsupported, we can pass an appropriately configured `GPUEngine` object: -{{code_block('user-guide/lazy/gpu', 'fallback-raise', ['GPUEngine'])}} +```python exec="on" result="text" session="user-guide/lazy" +q.collect(engine=pl.GPUEngine(raise_on_fail=True)) +``` ```pytb Traceback (most recent call last):