Skip to content

Commit

Permalink
inline doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
coastalwhite committed Sep 16, 2024
1 parent e7c57ce commit 7db2164
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 0 additions & 4 deletions docs/src/python/user-guide/lazy/gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
4 changes: 3 additions & 1 deletion docs/user-guide/gpu-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 7db2164

Please sign in to comment.