-
Notifications
You must be signed in to change notification settings - Fork 26
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
[Schema] testing against the ipywidgets schema spec #111
Labels
Comments
The current schema spec is a markdown style. Maybe we could decide on a JSON spec instead of markdown, which we could generate for a list of types of widgets. jupyter-widgets/ipywidgets#1979 |
A simple means to get the default serialized state of e.g. Slider is: #include <iostream>
#include "xwidgets/xslider.hpp"
// instantiate slider
xw::slider<double> slider;
// retrieve default state
xeus::xjson state; xeus::buffer_sequence buffers;
slider.serialize_state(state, buffers);
// compare state with reference model
std::cout << state << std::endl; |
from ipywidgets import IntSlider
s = IntSlider()
s.get_state() |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be interesting to test xwidgets's properties against ipywidget's schemas.
The text was updated successfully, but these errors were encountered: