Make documentation links usable from repository previews
This commit is contained in:
parent
34368bbe50
commit
e446d95855
1 changed files with 39 additions and 39 deletions
|
|
@ -22,7 +22,7 @@ async def slow_greeter(your_name):
|
|||
await sleep(2)
|
||||
return f'Hi {your_name}!'
|
||||
```
|
||||
> Run this in development mode by executing `great-ai server.py` or `python3 -m great_ai server.py` if you're on Windows and [`great-ai` is not in your `PATH`](/how-to-guides/install).
|
||||
> Run this in development mode by executing `great-ai server.py` or `python3 -m great_ai server.py` if you're on Windows and [`great-ai` is not in your `PATH`](https://great-ai.scoutinscience.com/how-to-guides/install).
|
||||
|
||||
### Client
|
||||
|
||||
|
|
@ -48,7 +48,7 @@ print(results)
|
|||
|
||||
> Run this script as a regular Python script by executing `python3 client.py`.
|
||||
|
||||
{ loading=lazy }
|
||||
{ loading=lazy }
|
||||
|
||||
As you can see, everything worked as expected. There is one way to improve it, though.
|
||||
## An `async` example
|
||||
|
|
@ -86,6 +86,6 @@ asyncio.run(main())
|
|||
|
||||
> Replace `client.py` with this async client. Note that although async support is significantly more streamlined in recent Python versions, it still requires a bit more boilerplate than its synchronous counterpart.
|
||||
|
||||
{ loading=lazy }
|
||||
{ loading=lazy }
|
||||
|
||||
This also works and might be considerably quicker in some use cases.
|
||||
|
|
|
|||
Loading…
Reference in a new issue