validate_chart_code
Validates user-generated chart code to meet required structure and optionally opens a PyCafe preview in a browser for immediate verification.
Instructions
Validate the chart code created by the user and optionally open the PyCafe link in a browser.
Returns:
ValidationResults object with status and dashboard details
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| auto_open | No | Whether to automatically open the PyCafe link in a browser | |
| data_info | Yes | Metadata for the dataset to be used in the chart | |
| chart_config | Yes | A ChartPlan object with the chart configuration |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| message | Yes | ||
| pycafe_url | Yes | ||
| python_code | Yes | ||
| browser_opened | Yes |