@sharpe-jupyter/connect 0.4.0 → 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 +12 -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
|
[
|
|
@@ -244,6 +248,7 @@ function startJupyter(port2) {
|
|
|
244
248
|
"--ServerApp.password=",
|
|
245
249
|
"--ServerApp.allow_remote_access=True",
|
|
246
250
|
"--ServerApp.disable_check_xsrf=True",
|
|
251
|
+
"--ContentsManager.allow_hidden=True",
|
|
247
252
|
`--ServerApp.root_dir=${process.cwd()}`
|
|
248
253
|
],
|
|
249
254
|
{ stdio: ["ignore", "pipe", "pipe"], env }
|
|
@@ -253,7 +258,11 @@ function isUvProject() {
|
|
|
253
258
|
return existsSync4(join4(process.cwd(), "uv.lock"));
|
|
254
259
|
}
|
|
255
260
|
function startJupyterWithUv(port2, uvBin) {
|
|
256
|
-
const env = {
|
|
261
|
+
const env = {
|
|
262
|
+
...process.env,
|
|
263
|
+
PATH: `${SHARPE_BIN_DIR}:${process.env.PATH ?? ""}`,
|
|
264
|
+
SHARPE_ENV_DIR: process.cwd()
|
|
265
|
+
};
|
|
257
266
|
return spawn(
|
|
258
267
|
uvBin,
|
|
259
268
|
[
|
|
@@ -273,6 +282,7 @@ function startJupyterWithUv(port2, uvBin) {
|
|
|
273
282
|
"--ServerApp.password=",
|
|
274
283
|
"--ServerApp.allow_remote_access=True",
|
|
275
284
|
"--ServerApp.disable_check_xsrf=True",
|
|
285
|
+
"--ContentsManager.allow_hidden=True",
|
|
276
286
|
`--ServerApp.root_dir=${process.cwd()}`
|
|
277
287
|
],
|
|
278
288
|
{ stdio: ["ignore", "pipe", "pipe"], env }
|