Merge branch 'nbfeats_mgx_ops' into 'mgx_ops'

Nbfeats mgx ops

See merge request pub/MetaGPT!26
This commit is contained in:
洪思睿 2024-04-08 13:21:36 +00:00
commit 33d15e4319
2 changed files with 4 additions and 1 deletions

View file

@ -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"),

View file

@ -12,6 +12,7 @@ from metagpt.tools.libs import (
web_scraping,
email_login,
terminal,
file_manager,
)
from metagpt.tools.libs.software_development import (
write_prd,
@ -38,4 +39,5 @@ _ = (
fix_bug,
git_archive,
terminal,
file_manager,
) # Avoid pre-commit error