missing arg in tmpdir setting
This commit is contained in:
@@ -23,7 +23,7 @@ def setup_env(outdir,
|
|||||||
uv_executable,
|
uv_executable,
|
||||||
timeout,
|
timeout,
|
||||||
kernel,
|
kernel,
|
||||||
nb_allow_errors):
|
allow_errors):
|
||||||
"""
|
"""
|
||||||
Sets up a student environment for ISLP_labs.
|
Sets up a student environment for ISLP_labs.
|
||||||
|
|
||||||
@@ -43,7 +43,7 @@ def setup_env(outdir,
|
|||||||
Timeout for running notebooks.
|
Timeout for running notebooks.
|
||||||
kernel : str
|
kernel : str
|
||||||
Kernel to use for running notebooks.
|
Kernel to use for running notebooks.
|
||||||
nb_allow_errors : bool
|
allow_errors : bool
|
||||||
Allow errors when running notebooks.
|
Allow errors when running notebooks.
|
||||||
"""
|
"""
|
||||||
repo_url = 'https://github.com/intro-stat-learning/ISLP_labs.git'
|
repo_url = 'https://github.com/intro-stat-learning/ISLP_labs.git'
|
||||||
@@ -56,7 +56,8 @@ def setup_env(outdir,
|
|||||||
nbfiles,
|
nbfiles,
|
||||||
uv_executable,
|
uv_executable,
|
||||||
timeout,
|
timeout,
|
||||||
nb_allow_errors)
|
kernel,
|
||||||
|
allow_errors)
|
||||||
return
|
return
|
||||||
|
|
||||||
if outdir.exists():
|
if outdir.exists():
|
||||||
@@ -89,7 +90,7 @@ def setup_env(outdir,
|
|||||||
run_command([str(uv_bin / 'pip'), 'install', '-r', 'requirements.txt', 'jupyterlab'], cwd=str(outdir))
|
run_command([str(uv_bin / 'pip'), 'install', '-r', 'requirements.txt', 'jupyterlab'], cwd=str(outdir))
|
||||||
|
|
||||||
if nbfiles:
|
if nbfiles:
|
||||||
if nb_allow_errors:
|
if allow_errors:
|
||||||
for nbfile in nbfiles:
|
for nbfile in nbfiles:
|
||||||
notebook_path = outdir / nbfile
|
notebook_path = outdir / nbfile
|
||||||
if not notebook_path.exists():
|
if not notebook_path.exists():
|
||||||
|
|||||||
Reference in New Issue
Block a user