mirror of
https://github.com/jihe520/MathModelAgent.git
synced 2026-09-19 08:09:48 +08:00
11 lines
310 B
Python
11 lines
310 B
Python
from .jupyter_backend import JupyterKernel
|
|
|
|
|
|
class CodeInterpreter:
|
|
def __init__(
|
|
self, work_dir: str, notebook_serializer
|
|
): # project / work_dir / task_id / jupyter
|
|
self.jupyter_kernel = JupyterKernel(
|
|
work_dir=work_dir, notebook_serializer=notebook_serializer
|
|
)
|