Skip to content

Commit

Permalink
docs: remove palmerpenguins imports
Browse files Browse the repository at this point in the history
  • Loading branch information
machow committed Oct 18, 2024
1 parent f7c3a05 commit 9f7fd17
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
6 changes: 2 additions & 4 deletions docs/get-started/controls-click-actions.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@ You can add cell click actions using the onClick argument, which accepts the fol
import htmltools
from reactable import Reactable, Column, JS, embed_css
from reactable.data import cars_93
from palmerpenguins import load_penguins
from reactable.data import cars_93, penguins
import polars as pl
embed_css()
penguins = load_penguins()
pl_penguins = pl.from_pandas(penguins)
pl_penguins = penguins.to_polars()
```


Expand Down
5 changes: 2 additions & 3 deletions docs/get-started/controls-sorting.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@ jupyter: python3

```{python}
from reactable import Reactable, Column, embed_css
from reactable.data import penguins
from palmerpenguins import load_penguins
import polars as pl
embed_css()
penguins = load_penguins()
pl_penguins = pl.from_pandas(penguins)
pl_penguins = penguins.to_polars()
```

Tables are sortable by default. You can sort a column by clicking on its header, or sort multiple columns by holding the shift key while sorting.
Expand Down
5 changes: 2 additions & 3 deletions docs/get-started/structure-column-groups.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ title: Column headers
import polars as pl
from reactable import Reactable, Column, ColGroup, embed_css
from palmerpenguins import load_penguins
from reactable.data import penguins
penguins = load_penguins()
pl_penguins = pl.from_pandas(penguins)
pl_penguins = penguins.to_polars()
embed_css()
```
Expand Down
5 changes: 2 additions & 3 deletions docs/get-started/structure-details.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@ title: Expandable details

```{python}
from reactable import Reactable, Column, ColFormat, JS, embed_css
from reactable.data import penguins
from palmerpenguins import load_penguins
import polars as pl
embed_css()
penguins = load_penguins()
pl_penguins = pl.from_pandas(penguins)
pl_penguins = penguins.to_polars()
```

You can make rows expandable with additional content through details, which takes an Python or JavaScript render function. See [Custom Rendering](./format-custom-rendering.qmd) for details on how to use render functions.
Expand Down

0 comments on commit 9f7fd17

Please sign in to comment.