recover code

This commit is contained in:
lidanyang 2023-12-14 15:54:02 +08:00
parent 2da141abbe
commit 48d542d383

View file

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