Skip to content

Commit f0eb561

Browse files
authored
Merge branch 'main' into chris/convert-text-blocks-to-markdown
2 parents 4070957 + b495c47 commit f0eb561

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/kernels/deepnote/deepnoteServerStarter.node.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,12 @@ export class DeepnoteServerStarter implements IDeepnoteServerStarter, IExtension
147147
// Enforce published pip constraints to prevent breaking Deepnote Toolkit's dependencies
148148
env.DEEPNOTE_ENFORCE_PIP_CONSTRAINTS = 'true';
149149

150+
// Detached mode ensures no requests are made to the backend (directly, or via proxy)
151+
// as there is no backend running in the extension, therefore:
152+
// 1. integration environment variables won't work / be injected
153+
// 2. post start hooks won't work / are not executed
154+
env.DEEPNOTE_RUNTIME__RUNNING_IN_DETACHED_MODE = 'true';
155+
150156
// Remove PYTHONHOME if it exists (can interfere with venv)
151157
delete env.PYTHONHOME;
152158

0 commit comments

Comments
 (0)