-
Notifications
You must be signed in to change notification settings - Fork 389
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
API Proposal #13
Comments
This is also probably a conversation in which @minrk would have useful perspective |
@choldgraf you are looking for #15 :) This one is about a HTTP JSON API, which afaict Binder doesn't have. |
are we gonna keep this open to discuss new API things? Right now there's just |
Nope, this is unrelated to that - this is for the API that js clients can use. We don't have a stable one for that yet, so yes we should keep it open. |
Ideally, someone who would use the API should describe their use case and tell us what their ideal flow would look like :) |
Well since you asked :). It'd be nice if we could use it essentially as a kernel spawning service with a specific setup for the kernel. We have an example right now that uses tmpnb to spawn a kernel (see https://github.com/jupyter-widgets/ipywidgets/blob/master/examples/web-tmpnb/src/index.ts), and then send the kernel code to execute. If we could spawn a kernel with a specific configuration (for example, a specific version of ipywidgets installed), that would be great. |
Looked at thebelab's implementation, realized it was an EventSource with a simple path and then wrote two functions:
These are both in https://github.com/nteract/nteract/blob/master/packages/rx-binder |
And we have a Python example in this repo. |
This needs a versioned, simple RESTful API that allows for a wide variety of use cases.
Some of the use cases it should cater for:
We should collect other use cases too before finalizing the API design.
Some API design guidelines I like (and should re-read before doing the design):
The text was updated successfully, but these errors were encountered: