Skip to content

Commit 96ad329

Browse files
committed
Wording tweaks
1 parent 4c6d6fd commit 96ad329

File tree

1 file changed

+3
-3
lines changed
  • docs/dashboards/interactivity/shiny-python

1 file changed

+3
-3
lines changed

docs/dashboards/interactivity/shiny-python/index.qmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ The first thing to do is add `server: shiny` to the front matter. This tells Qua
3636

3737
Next, we use functions matching the pattern `ui.input_xxx` to create input controls. For example, `ui.input_select()` creates a select box, `ui.input_slider()` creates a slider, and so on. The values returned by these functions are then rendered into HTML and JavaScript by Quarto.
3838

39+
This example only uses two types of inputs, but Shiny has many more. Use the [Shiny Component Browser](https://jcheng.shinyapps.io/shiny-component-browser/) to see them all, along with code snippets you can copy and paste into your dashboard.
40+
3941
**Every input function takes an input ID as its first argument.** An input ID is string that uniquely identifies this input; it must be a simple, syntactically valid Python variable name. We will use this ID to access the input's value from other parts of the dashboard.
4042

4143
::: {.callout-warning}
@@ -51,8 +53,6 @@ ui.input_select("x", label="Variable:",
5153
```
5254
````
5355

54-
This example only uses two types of inputs, but Shiny has many more. See the [Shiny Component Browser](https://jcheng.shinyapps.io/shiny-component-browser/) for previews and code snippets.
55-
5656
In many dashboards, it's desirable to visually gather all of your input controls into a sidebar. You can do this by adding the `.sidebar` class to a level 2 header, as in the `## {.sidebar}` line above.
5757

5858
### Displaying Dynamic Output
@@ -81,7 +81,7 @@ Note that our code never calls the `displot()` function! Just the act of definin
8181
* Use the function body to create the plot.
8282
* Automatically re-run the function body whenever the values of `input.x()`, `input.rug()`, or `input.dist()` change due to user interaction, and use the result to update the existing plot.
8383

84-
This example only contains a single `@render.plot` output, but it's possible for Shiny apps to contain multiple outputs, and outputs of different types, as you'll see in the following example. See the [Shiny Component Browser](https://jcheng.shinyapps.io/shiny-component-browser/#outputs) to see what's available.
84+
This example only contains a single `@render.plot` output, but it's possible for Shiny apps to contain multiple outputs, and outputs of different types, as you'll see in the following example. Check out the [Shiny Component Browser](https://jcheng.shinyapps.io/shiny-component-browser/#outputs) to see what types of outputs are available.
8585

8686
### Reactive Programming
8787

0 commit comments

Comments
 (0)