mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-05 14:55:18 +02:00
set nb execution path
This commit is contained in:
parent
c6ae9031cc
commit
cb1cfaa072
1 changed files with 2 additions and 1 deletions
|
|
@ -24,6 +24,7 @@ from rich.panel import Panel
|
|||
from rich.syntax import Syntax
|
||||
|
||||
from metagpt.actions import Action
|
||||
from metagpt.const import DEFAULT_WORKSPACE_ROOT
|
||||
from metagpt.logs import logger
|
||||
|
||||
|
||||
|
|
@ -43,7 +44,7 @@ class ExecuteNbCode(Action):
|
|||
):
|
||||
super().__init__(
|
||||
nb=nb,
|
||||
nb_client=NotebookClient(nb, timeout=timeout),
|
||||
nb_client=NotebookClient(nb, timeout=timeout, resources={"metadata": {"path": DEFAULT_WORKSPACE_ROOT}}),
|
||||
timeout=timeout,
|
||||
console=Console(),
|
||||
interaction=("ipython" if self.is_ipython() else "terminal"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue