Skip to content

Commit

Permalink
add main
Browse files Browse the repository at this point in the history
  • Loading branch information
SmartManoj committed Jan 17, 2025
1 parent 076325f commit cbff09b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions openhands/runtime/plugins/jupyter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/'))))

0 comments on commit cbff09b

Please sign in to comment.