Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/kernels/deepnote/deepnoteServerStarter.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,12 @@ export class DeepnoteServerStarter implements IDeepnoteServerStarter, IExtension
// Enforce published pip constraints to prevent breaking Deepnote Toolkit's dependencies
env.DEEPNOTE_ENFORCE_PIP_CONSTRAINTS = 'true';

// Detached mode ensures no requests are made to the backend (directly, or via proxy)
// as there is no backend running in the extension, therefore:
// 1. integration environment variables won't work / be injected
// 2. post start hooks won't work / are not executed
env.DEEPNOTE_RUNTIME__RUNNING_IN_DETACHED_MODE = 'true';

// Remove PYTHONHOME if it exists (can interfere with venv)
delete env.PYTHONHOME;

Expand Down