Skip to content

Commit

Permalink
test code
Browse files Browse the repository at this point in the history
  • Loading branch information
jleonard99 committed Oct 4, 2024
1 parent ea75721 commit 5e53624
Show file tree
Hide file tree
Showing 16 changed files with 4,558 additions and 13 deletions.
24 changes: 12 additions & 12 deletions docs/test.html

Large diffs are not rendered by default.

35 changes: 34 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ panel = "^1.5.1"
jupyter-bokeh = "^3.0.7"
watchfiles = "^0.21.0"
pygments = "^2.17.2"
bokeh = "^3.6.0"
bokeh-sampledata = "^2024.2"

[build-system]
requires = ["poetry-core"]
Expand Down
1,239 changes: 1,239 additions & 0 deletions test/test.html

Large diffs are not rendered by default.

36 changes: 36 additions & 0 deletions test/test.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
title: Test of row_content
---

```{python}
import pandas as pd
import panel as pn
# from panel.widgets import DataFrame
pn.extension('tabulator')
# Sample DataFrame
data = {'name': ['Alice', 'Bob', 'Charlie'],
'Value1': [10, 20, 30],
'Value2': [3, 2, 5],
}
df = pd.DataFrame(data)
def content_fn( row ):
return pn.pane.Markdown(
f'# Row contents\n name: {row["name"]}',
sizing_mode='stretch_width'
)
sample_table = pn.widgets.Tabulator(
df, height=350,
layout='fit_columns',
sizing_mode='stretch_width',
row_content=content_fn,
embed_content=True,
expanded = []
)
sample_table
```
Loading

0 comments on commit 5e53624

Please sign in to comment.