Skip to content
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

- feature: add python code runner api #500

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

agallardol
Copy link
Collaborator

@agallardol agallardol commented Oct 17, 2024

Status: It's s working progress. Right now we have a working version with no auth layer.

Challenges:

  • Currently it's using a hidden webview that execute the python code in a Web Worker. It seems hidden web processes, specially web workers receives a lot of throttling while they are in background/non-focused mode.
    We need to investigate this (more info at dcSpark slack)

CURL example:

Request

curl -X "POST" "http://127.0.0.1:11436/run-code"
-H 'Content-Type: application/json'
-d $'{
"configurations": "null",
"code": "print('hello world')",
"parameters": "null"
}'

@agallardol agallardol changed the title Agallardol/python code runner api - feature: add python code runner api Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant