From 48d542d383bdb4bd80da68c546d3a553d8c543ed Mon Sep 17 00:00:00 2001 From: lidanyang Date: Thu, 14 Dec 2023 15:54:02 +0800 Subject: [PATCH] recover code --- metagpt/actions/execute_code.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/metagpt/actions/execute_code.py b/metagpt/actions/execute_code.py index c5ed8964e..36e01ed0e 100644 --- a/metagpt/actions/execute_code.py +++ b/metagpt/actions/execute_code.py @@ -157,11 +157,6 @@ class ExecutePyCode(ExecuteCode, Action): return code, language - def save_notebook(self, path: str): - path = Path(path) - path.parent.mkdir(parents=True, exist_ok=True) - nbformat.write(self.nb, path) - async def run(self, code: Union[str, Dict, Message], language: str = "python") -> Tuple[str, bool]: code, language = self._process_code(code, language)