From 85c4f796bdb42bb7867a7c1cad7faa8d4b8c7561 Mon Sep 17 00:00:00 2001 From: Matt Craig Date: Sat, 2 Nov 2024 04:43:57 -0500 Subject: [PATCH] Use full path when creating notebook (#73) --- src/factories/notebook/notebook_factory.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/factories/notebook/notebook_factory.ts b/src/factories/notebook/notebook_factory.ts index c90284f..24b7fb8 100644 --- a/src/factories/notebook/notebook_factory.ts +++ b/src/factories/notebook/notebook_factory.ts @@ -30,7 +30,8 @@ export class NotebookFactory implements IPanelFactory { await fileBrowser.model.upload(fileBlob); const configArgs: IDict = config.args ?? {}; const factory = configArgs['widget-type'] ?? 'default'; - const doc = await documentManager.openOrReveal(newName, factory); + const newPath = `${fileBrowser.model.path}/${newName}`; + const doc = await documentManager.openOrReveal(newPath, factory); if (!doc) { console.error(`Failed to create widget with ${factory} factory`); return;