@sharpe-jupyter/connect 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +10 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -232,7 +232,11 @@ function installPackages(packages) {
|
|
|
232
232
|
});
|
|
233
233
|
}
|
|
234
234
|
function startJupyter(port2) {
|
|
235
|
-
const env = {
|
|
235
|
+
const env = {
|
|
236
|
+
...process.env,
|
|
237
|
+
PATH: `${SHARPE_BIN_DIR}:${process.env.PATH ?? ""}`,
|
|
238
|
+
SHARPE_ENV_DIR: process.cwd()
|
|
239
|
+
};
|
|
236
240
|
return spawn(
|
|
237
241
|
venvBin("jupyter"),
|
|
238
242
|
[
|
|
@@ -254,7 +258,11 @@ function isUvProject() {
|
|
|
254
258
|
return existsSync4(join4(process.cwd(), "uv.lock"));
|
|
255
259
|
}
|
|
256
260
|
function startJupyterWithUv(port2, uvBin) {
|
|
257
|
-
const env = {
|
|
261
|
+
const env = {
|
|
262
|
+
...process.env,
|
|
263
|
+
PATH: `${SHARPE_BIN_DIR}:${process.env.PATH ?? ""}`,
|
|
264
|
+
SHARPE_ENV_DIR: process.cwd()
|
|
265
|
+
};
|
|
258
266
|
return spawn(
|
|
259
267
|
uvBin,
|
|
260
268
|
[
|