Skip to content
Merged
Show file tree
Hide file tree
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 project/common/alcatraz/alcatraz/clusters/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -1297,6 +1297,12 @@ async def create_kernel_on_machine(
if await self.is_kernel_started():
raise ValueError("Kernel already created.")

if self.no_network:
raise AlcatrazUnexpectedSystemError(
"Jupyter kernel startup is not supported when no_network=True. "
"Use network_mode=UNPROXIED (no firewall) or disable no_network."
)

await self._ensure_jupyter_installed(force_python_install)

# expose kernel ports on host machine
Expand Down
2 changes: 2 additions & 0 deletions project/swelancer/swelancer/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from nanoeval.solvers.computer_tasks.code_execution_interface import (
ComputerInterface,
JupyterComputerInterface,
NetworkMode,
RuntimeConfig,
)
from nanoeval.solvers.computer_tasks.solver import PythonCodingEval
Expand Down Expand Up @@ -543,6 +544,7 @@ async def get_instances(self) -> list[SWELancerTask]:
manager_commit=manager_commit,
issue_id=task["question_id"],
cwd=cwd,
network_mode=NetworkMode.UNPROXIED, # needed for JupyterComputerInterface
attempt_id=attempt_idx,
run_group_id=self.run_group_id,
run_id=run_id,
Expand Down