MCPcopy Index your code
hub / github.com/deepnote/deepnote / getSupportedFileHint

Function getSupportedFileHint

packages/cli/src/utils/file-resolver.ts:202–213  ·  view source on GitHub ↗

* Get a helpful hint based on the file extension.

(ext: string)

Source from the content-addressed store, hash-verified

200 * Get a helpful hint based on the file extension.
201 */
202function 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}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected