diff --git a/openhands/runtime/plugins/jupyter/__init__.py b/openhands/runtime/plugins/jupyter/__init__.py index 429cca202e58..5a0524b2af1b 100644 --- a/openhands/runtime/plugins/jupyter/__init__.py +++ b/openhands/runtime/plugins/jupyter/__init__.py @@ -82,3 +82,13 @@ async def _run(self, action: Action) -> IPythonRunCellObservation: async def run(self, action: Action) -> IPythonRunCellObservation: obs = await self._run(action) return obs + + +if __name__ == '__main__': + from dotenv import load_dotenv + load_dotenv() + jupyter = JupyterPlugin() + import asyncio + asyncio.run(jupyter.initialize('smart')) + print(jupyter.python_interpreter_path) + print(asyncio.run(jupyter.run(IPythonRunCellAction(code='!ls /kaggle/'))))