mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-15 11:02:36 +02:00
recover code
This commit is contained in:
parent
2da141abbe
commit
48d542d383
1 changed files with 0 additions and 5 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue