-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Add Blaxel support for remote code execution #1791
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Blaxel support for remote code execution #1791
Conversation
- Introduced `BlaxelExecutor` for executing Python code in Blaxel sandboxes, providing fast-launching VMs with hibernation. - Updated `pyproject.toml` to include Blaxel as a dependency. - Modified documentation to reflect Blaxel integration in various sections, including installation, usage examples, and security considerations. - Enhanced `CodeAgent` to support `executor_type="blaxel"` for seamless integration. - Added unit tests for `BlaxelExecutor` to ensure proper functionality and error handling.
|
Hey @Joffref , thanks for the contrib! Seems that your code is not handling the final answer as expected Also sandbox cleaning seems to take a lot of time, is that expected? Do we need to wait? |
|
Hey @Hugoch, thank you for reviewing this! Regarding the deletion time — we do need to wait until the deletion has been completed, since names can collide and cause errors when trying to deploy a new sandbox with the same name. For the error you’re seeing, would you mind sharing the code you used, or the snippet/code I can run in the SDK to test my implementation properly? |
Execute code through jupyter kernels to keep history of execution
|
Hey @Hugoch! @cploujoux just did a great job updating the PR — it should be good to go now. Let us know what you think; we'll squash the commits once it's approved so the additions are easier to review. |
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
|
@cploujoux @Joffref Can you fix the lint ( |
51dcf93 to
738b241
Compare
|
Thx @Joffref @cploujoux ! |
Summary
BlaxelExecutorfor executing Python code in Blaxel sandboxes, leveraging fast-launching VMs with hibernation.pyproject.tomlto include Blaxel as a dependency.CodeAgentto supportexecutor_type="blaxel".BlaxelExecutor.Open Questions