Skip to content

Commit 20f4de7

Browse files
convert streamlit app
1 parent f231956 commit 20f4de7

10 files changed

Lines changed: 566 additions & 2 deletions
99.9 KB
Loading
19 MB
Loading
76 KB
Loading
237 KB
Loading

docs/examples/convert-streamlit-app.md

Lines changed: 557 additions & 0 deletions
Large diffs are not rendered by default.

docs/examples/generate-plot-from-picture.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Please implement the plan.
2424

2525
## Result
2626

27-
Not perfect, but a really good starting point.
27+
The result is a solid foundation that can be further refined as needed.
2828

2929
![Distribution of Electricity Plot - Output](../assets/images/examples/distribution-of-electricity-output.png)
3030

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ nav:
108108
- examples/index.md
109109
- Plot from Picture: examples/generate-plot-from-picture.md
110110
- Dashboard from Picture: examples/generate-dashboard-from-picture.md
111+
- Convert Streamlit App: examples/convert-streamlit-app.md
111112
- How-To Guides:
112113
- Installation:
113114
- uv (recommended): how-to/install-uv.md

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,10 @@ filterwarnings = [
173173
]
174174
testpaths = ["tests"]
175175

176+
[tool.codespell]
177+
ignore-words-list = "acn"
178+
skip = "*.js,*.css,*.svg,*.json"
179+
176180
[tool.mypy]
177181
python_version = '3.11'
178182
no_implicit_optional = true

src/holoviz_mcp/config/resources/skills/panel-material-ui.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ elif pn.state.served:
135135

136136
DO always create test in separate test files and DO run test via pytest:
137137

138-
139138
```python
140139
import ...
141140

@@ -165,12 +164,14 @@ def test_characters_reactivity():
165164
- DO use Material UI `sx` parameter for all css styling over `styles` and `stylesheets`
166165
- DO use panel-material-ui components instead of panel components for projects already using panel-material-ui and for new projects
167166
- DON'T configure the `design`, i.e. DO NOT `pn.extension(design='material')`.
167+
- DO prefer professional Material UI icons over emojies
168168

169169
## Component Instructions
170170

171171
### Page
172172

173173
- DO provide the title to the `Page.title` argument. DON'T provide it in the `Page.main` area.
174+
- DO make sure components in the `sidebar` stretch width.
174175
- DO provide an optional image, description, navigation menu to the `Page.sidebar` argument. Normally DON't put them in the `header` or `main` areas.
175176
- DO provide the input widgets as children to the `Page.sidebar` argument
176177
- DO not add advanced or high components to the `Page.header` as it is only 100px high by default. Normally only buttons, indicators, text and navigation links go into the header.

src/holoviz_mcp/config/resources/skills/panel.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ template = pn.template.FastListTemplate(
339339
```
340340

341341
- In the `sidebar`, DO use the order: 1) optional logo, 2) description, 3) input widgets, 4) documentation
342+
- In the `sidebar`, DO make sure components stretch width.
342343
- Do set `main_layout=None` for a modern styling.
343344

344345
### Responsive Design

0 commit comments

Comments
 (0)