FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

docs(mkdocs): mention pn preview in the hello-world example (#50) · pythonnative/pythonnative@60687a0 · GitHub

Commit 60687a0

Browse files
docs(mkdocs): mention pn preview in the hello-world example (#50)
Refs: #42 Co-authored-by: Owen Carey <37121709+owenthcarey@users.noreply.github.com>
1 parent 952de2f commit 60687a0

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

‎docs/examples/hello-world.md‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,25 @@ def App():
4646

4747
## Run it
4848

49+
### Preview on desktop
50+
51+
For the fastest feedback loop, run the example in the desktop preview
52+
before opening an emulator or simulator. The preview imports your real
53+
app code, so if your project declares packages in
54+
`[requirements].packages`, `pip install` them first. From the project
55+
root:
56+
57+
```bash
58+
pn preview
59+
```
60+
61+
A desktop window opens with `app/main.py`'s `App`. Edit a component,
62+
save, and the preview refreshes in place. See the
63+
[Desktop preview guide](../guides/desktop-preview.md) for platform
64+
notes and more options.
65+
66+
### Run on a device or simulator
67+
4968
From the project root:
5069

5170
```bash

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL