(ext: string)
| 50 | } |
| 51 | |
| 52 | function unsupportedExtensionError(ext: string): LoadRunnableFileError { |
| 53 | return new LoadRunnableFileError( |
| 54 | `Unsupported file type: ${ext || '(no extension)'}\n\n` + |
| 55 | `Supported formats:\n` + |
| 56 | ` .deepnote - Deepnote project\n` + |
| 57 | ` .ipynb - Jupyter Notebook\n` + |
| 58 | ` .py - Percent format (# %%) or Marimo (@app.cell)\n` + |
| 59 | ` .qmd - Quarto document` |
| 60 | ) |
| 61 | } |
| 62 | |
| 63 | /** |
| 64 | * Parse and convert in-memory file content to a {@link LoadedRunnableFile}. |
no outgoing calls
no test coverage detected