INNER CODE UNIT · Python

run

Planetary-Computers/autotab-starter · src/server/server.py:61

    def run(self, code: str | List[str]):
        if isinstance(code, list):
            for cell in code:
                self.shell.run_cell(cell)
        else:
            self.shell.run_cell(code)


session = Session(shell=InteractiveShell())

shell = InteractiveShell()


class Code(BaseModel):
    code: str


@app.post("/run_all")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…