| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -46,6 +46,25 @@ def App(): | |||
| 46 | 46 | ||
| 47 | 47 | ## Run it | |
| 48 | 48 | ||
| 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 | + | ||
| 49 | 68 | From the project root: | |
| 50 | 69 | ||
| 51 | 70 | ```bash | |
| Back | FazBrowse Home | New Git URL |
0 commit comments