* Get a helpful hint based on the file extension.
(ext: string)
| 200 | * Get a helpful hint based on the file extension. |
| 201 | */ |
| 202 | function getSupportedFileHint(ext: string): string { |
| 203 | const hints: Record<string, string> = { |
| 204 | '.ipynb': |
| 205 | 'Jupyter notebooks (.ipynb) are not directly supported.\nUse the @deepnote/convert package to convert to .deepnote format.', |
| 206 | '.json': 'JSON files are not supported. Expected a .deepnote file.', |
| 207 | '.yaml': 'YAML files are not directly supported. Expected a .deepnote file.', |
| 208 | '.yml': 'YAML files are not directly supported. Expected a .deepnote file.', |
| 209 | '.py': 'Python files are not supported. Expected a .deepnote file.', |
| 210 | } |
| 211 | |
| 212 | return hints[ext] || 'Expected a .deepnote file.' |
| 213 | } |
no outgoing calls
no test coverage detected