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

Support Jupyter Widgets #43

Open
2 tasks
bollwyvl opened this issue Jul 13, 2019 · 0 comments
Open
2 tasks

Support Jupyter Widgets #43

bollwyvl opened this issue Jul 13, 2019 · 0 comments
Milestone

Comments

@bollwyvl
Copy link
Contributor

bollwyvl commented Jul 13, 2019

Get the JS kernel to support the Jupyter Widget message spec. Unfortunately, the most professionally-maintained JS kernel does't have a story yet so we'll be inventing new stuff.

desired API

How should widgets be available?

  • wydgets whole new API opinion
  • @jupyter-widgets/jupyterlab-manager somehow use the registry directly
let x = widgets.FloatSlider({description: 'x'});
display.display(x);
// a widget appears in the output area
x.value = 1.0
// item moves along axis
x.jsobserve('value', (change) => { document.write(change.new) })
// page streams changed values
widgets.jsdlink([x, 'value'], [x, 'description'], (value) => { `${value} %` }
// some weird labelling stuff happens

approaches

  • use the widget registry directly to generate an API of the available widgets?

down the road

  • if a live jyve kernel (or proxy) has direct access to the WidgetManager, there's no reason it couldn't have access to all the widgets in all the notebooks, and be able to manage linkages between them.
@bollwyvl bollwyvl added this to the 1.0 milestone Jul 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant