Skip to content

Commit

Permalink
DOC update the imports in the examples (#627)
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian authored Dec 23, 2023
1 parent d3c94fa commit 381f94b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docs/source/how-to/direct-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ In these situations, you may run the service and the client in the same process.
## From a (service-side) Tree instance

```py
from tiled.client import from_context
from tiled.client import Context, from_context
from tiled.examples.generated_minimal import tree
from tiled.server import build_app
from tiled.server.app import build_app

app = build_app(tree)
context = Context.from_app(app)
Expand All @@ -38,9 +38,8 @@ The configuration may be given as:
From a dict of configuration:

```py
from tiled.client import from_context
from tiled.examples.generated_minimal import tree
from tiled.server import build_app_from_config
from tiled.client import Context, from_context
from tiled.server.app import build_app_from_config

config = {
"trees": [
Expand Down

0 comments on commit 381f94b

Please sign in to comment.