Skip to content

Commit 8d67855

Browse files
authored
feat: Prevent user from breaking Toolkit's dependencies (#23)
* feat: Prevent user from breaking Toolkit's dependencies part of OSS-135 * chore: Update Toolkit version * chore: Consolidate Toolkit version
1 parent 0a39609 commit 8d67855

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/kernels/deepnote/deepnoteServerStarter.node.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ export class DeepnoteServerStarter implements IDeepnoteServerStarter, IExtension
144144
const venvPath = venvBinDir.replace(/\/bin$/, '').replace(/\\Scripts$/, '');
145145
env.VIRTUAL_ENV = venvPath;
146146

147+
// Enforce published pip constraints to prevent breaking Deepnote Toolkit's dependencies
148+
env.DEEPNOTE_ENFORCE_PIP_CONSTRAINTS = 'true';
149+
147150
// Remove PYTHONHOME if it exists (can interfere with venv)
148151
delete env.PYTHONHOME;
149152

src/kernels/deepnote/types.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,7 @@ export interface IDeepnoteKernelAutoSelector {
147147
ensureKernelSelected(notebook: vscode.NotebookDocument, token?: vscode.CancellationToken): Promise<void>;
148148
}
149149

150-
export const DEEPNOTE_TOOLKIT_WHEEL_URL =
151-
'https://deepnote-staging-runtime-artifactory.s3.amazonaws.com/deepnote-toolkit-packages/0.2.30.post20/deepnote_toolkit-0.2.30.post20-py3-none-any.whl';
152-
export const DEEPNOTE_TOOLKIT_VERSION = '0.2.30.post20';
150+
export const DEEPNOTE_TOOLKIT_VERSION = '0.2.30.post23';
151+
export const DEEPNOTE_TOOLKIT_WHEEL_URL = `https://deepnote-staging-runtime-artifactory.s3.amazonaws.com/deepnote-toolkit-packages/${DEEPNOTE_TOOLKIT_VERSION}/deepnote_toolkit-${DEEPNOTE_TOOLKIT_VERSION}-py3-none-any.whl`;
153152
export const DEEPNOTE_DEFAULT_PORT = 8888;
154153
export const DEEPNOTE_NOTEBOOK_TYPE = 'deepnote';

0 commit comments

Comments
 (0)