Skip to content

Commit cbff09b

Browse files
committed
add main
1 parent 076325f commit cbff09b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

openhands/runtime/plugins/jupyter/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,13 @@ async def _run(self, action: Action) -> IPythonRunCellObservation:
8282
async def run(self, action: Action) -> IPythonRunCellObservation:
8383
obs = await self._run(action)
8484
return obs
85+
86+
87+
if __name__ == '__main__':
88+
from dotenv import load_dotenv
89+
load_dotenv()
90+
jupyter = JupyterPlugin()
91+
import asyncio
92+
asyncio.run(jupyter.initialize('smart'))
93+
print(jupyter.python_interpreter_path)
94+
print(asyncio.run(jupyter.run(IPythonRunCellAction(code='!ls /kaggle/'))))

0 commit comments

Comments
 (0)