MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / getResourceType

Function getResourceType

src/platform/common/utils.ts:59–65  ·  view source on GitHub ↗
(uri?: Uri)

Source from the content-addressed store, hash-verified

57};
58
59export function getResourceType(uri?: Uri): 'notebook' | 'interactive' {
60 if (!uri) {
61 return 'interactive';
62 }
63 // this returns `interactive` for any resource that isn't *.ipynb - that seems wrong
64 return uriPath.extname(uri).toLowerCase().endsWith('ipynb') ? 'notebook' : 'interactive';
65}
66
67function fixupOutput(output: nbformat.IOutput): nbformat.IOutput {
68 let allowedKeys: Set<string>;

Callers 9

findNotebookEditorMethod · 0.90
computePreferredMethod · 0.90
runInstallerMethod · 0.90
restartFunction · 0.90
canShutdownSessionMethod · 0.90
launchMethod · 0.90

Calls 1

extnameMethod · 0.65

Tested by

no test coverage detected