-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reorganize Menus: Get Started and Concepts (no tutorials) #261
base: main
Are you sure you want to change the base?
Conversation
Let's link "Learn Shiny" to the first Get Started page |
…hiny-site into get-started-concepts-only
Create efficient, reactive, and robust web applications and dashboards. | ||
|
||
{class="img-shadow"} | ||
|
||
```python | ||
# | standalone: true | ||
|
||
from shiny.express import ui, render, input | ||
import seaborn as sns | ||
|
||
df = sns.load_dataset("penguins") | ||
|
||
ui.input_slider("bins", "Number of Bins", min=5, max=20, value=15, step=1) | ||
|
||
|
||
@render.plot | ||
def plot(): | ||
ax = sns.histplot(data=df, x="body_mass_g", bins=input.bins()) | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<!-- | ||
Sample of component gallery mini docs that link to component | ||
--> | ||
|
||
- slider | ||
- selectize | ||
- date | ||
- map | ||
- plotly | ||
- valuebox |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this section here would be a few examples of inputs and outputs that look like small cards like the components gallery.
The Python inputs return regular HTML: | ||
|
||
```python | ||
>>> from shiny import ui | ||
>>> ui.input_action_button("btn", "Button") | ||
``` | ||
|
||
```html | ||
<button class="btn btn-default action-button" id="btn" type="button">Button</button> | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still not too sure how to explain + show extensibility.
Just the get started and concept pages from #250 4751da3
does not include the tutorials.
Does a re-write for the get started introduction, and fixes up the install, create and run pages to include Positron.
I have a few other ideas for the home page, but that can be a separate PR/discussion