Skip to content

Commit 0ac0648

Browse files
review
1 parent 00973b9 commit 0ac0648

4 files changed

Lines changed: 21 additions & 25 deletions

File tree

13.8 KB
Loading

docs/tutorials/stock-analysis-claude-code.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,22 @@ By the end, you'll have built an interactive report that displays financial data
2020
First, let's ask Claude to help us plan our stock analysis report. Open claude and run:
2121

2222
```text
23-
I want to create a stock analysis report showing AAPL and META's hourly data for the last 5 days. The report should include:
23+
I want to quickly display a stock analysis report showing AAPL and META's hourly data for the last 60 days.
24+
25+
The report should include:
2426
2527
- Individual price charts for each stock
2628
- Summary statistics table
2729
- Normalized comparison overlay
2830
- Trading volume visualization
2931
- Professional styling
3032
31-
Please plan the architecture for this report. What components should I use from Panel and hvPlot?
33+
Please design and plan this report. Keep it simple and as a single script.
3234
```
3335

34-
Claude will provide a detailed architecture plan including:
36+
Claude will use `holoviz-data-explorer` to develop a detailed architecture plan:
3537

36-
- Data sources and how to fetch stock data with yfinance
37-
- Chart types to use for price and volume visualization
38-
- Panel components for layout and statistics
39-
- Best practices for organizing the report
38+
![Claude Data Explorer](../assets/images/getting-started-claude-data-eplorer.png)
4039

4140
!!! success "What you'll see"
4241
Claude will outline a clear plan for building your report, including the key libraries and components needed.
@@ -46,7 +45,7 @@ Claude will provide a detailed architecture plan including:
4645
Now let's ask Claude to implement the report and use the display tool to show it:
4746

4847
```text
49-
Implement it. Display it using the holoviz_display tool.
48+
Please implement the report. Then display it using the holoviz_display tool.
5049
```
5150

5251
Claude will:
@@ -81,7 +80,7 @@ Open the URL in your browser. You should see your stock analysis report with:
8180
Now that you understand how the report works, let's modify it to analyze different stocks:
8281

8382
```text
84-
Modify the report to show GOOGL and MSFT instead of AAPL and META
83+
Display GOOGL and MSFT instead of AAPL and META
8584
```
8685

8786
Claude will generate updated code with the new stocks and provide a new URL to view the modified report.
@@ -93,7 +92,7 @@ Claude will generate updated code with the new stocks and provide a new URL to v
9392
Let's enhance the report by adding a moving average to the price charts:
9493

9594
```text
96-
Add a 20-period moving average line to each stock's price chart
95+
Display a 20-period moving average line in each stock's price chart
9796
```
9897

9998
Claude will update the code to include moving average trend lines and provide a new URL to view the enhanced report.

docs/tutorials/weather-dashboard-claude-code.md

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,20 @@ Take a moment to review Claude's summary. This will guide our dashboard design!
2828
Now let's ask Claude to help us plan the dashboard architecture:
2929

3030
```text
31-
I want to create an awesome dashboard for exploring the Seattle Weather dataset. The dashboard should:
31+
I want to create a modern, professional looking dashboard for exploring the Seattle Weather dataset. The dashboard should:
3232
3333
- Enable filtering by multiple years (default: 2015)
3434
- Include plots for temperature and wind grouped by year
3535
- Include a plot by weather type
3636
- Include a table with the raw data
37-
- Use ECharts with smooth transitions
38-
- Use consistent and modern styling
39-
40-
Please plan the architecture for this dashboard. What components should I use from Panel? How should the code be organized?
37+
- Use panel-material-ui for a modern look and feel
38+
- Use ECharts with smooth transitions for an awesome look and feel. Not hvplot
39+
- Use consistent, modern and appealing styling
40+
- Use the vega-datasets package for providing the Seattle weather data
41+
42+
Please plan the architecture for this dashboard. What components should I use from Panel? How should I organize them?
43+
Keep it as a single script weather_dashboard.py file for simplicity
44+
Add the tests in test_weather_dashboard.py file and make sure the tests pass
4145
```
4246

4347
Claude will provide a detailed architecture including:
@@ -49,22 +53,14 @@ Claude will provide a detailed architecture including:
4953
- Color palette suggestions
5054

5155
!!! success "What you'll see"
52-
Take time to read through Claude's plan - it's the blueprint for your application!
56+
Take time to review and refine Claude's plan - it's the blueprint for your application!
5357

5458
## Step 3: Implement the Dashboard
5559

5660
With a solid plan, let's create the dashboard. We'll create it as a project file:
5761

5862
```text
59-
Based on the plan above, create a weather_dashboard.py file that implements the Seattle Weather dashboard. Include:
60-
61-
- Data loading and filtering
62-
- ECharts visualizations for temperature, wind, and weather types
63-
- Panel components for interactivity
64-
- Clean, well-organized code with docstrings
65-
- The vega_datasets package provides the Seattle weather data
66-
67-
Keep it as a single file for simplicity.
63+
Based on the plan implement the Seattle Weather dashboard in a single weather_dashboard.py file. Make sure all tests pass.
6864
```
6965

7066
Claude will create the `weather_dashboard.py` file in your current directory.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,7 @@ def create_plot(self) -> go.Figure:
583583

584584
### ECharts
585585

586+
DO prefer ECharts dict configuration over of pyecharts
586587
**CRITICAL**: ECharts configurations must be JSON-serializable. Panel uses Bokeh's serialization mechanism which cannot serialize Python functions.
587588

588589
**NEVER use Python functions or lambdas** in ECharts configuration:

0 commit comments

Comments
 (0)