Sylvain Corlay
3b200d388b
Move _unpack_models to widget.js and widget serialization to widget.py
11 years ago
Jonathan Frederic
0c278a050d
Merge pull request #7757 from jasongrout/custom-serialization
...
Custom serialization
11 years ago
Sylvain Corlay
1dbd95c4bc
allow_none=False by default for Type and Instance
11 years ago
Jason Grout
15c29f685c
Change custom serialization to use custom models, rather than transmitting the serializer name across the wire
...
This separates the kernel and the js much more cleanly, and doesn't use as much space on the wire as well!
11 years ago
Jason Grout
a0ea58f768
Delete unused custom serializer
11 years ago
Jason Grout
b2f775549d
Correct documentation
11 years ago
Jason Grout
4ef0a23839
work-in-progress for custom js serializers
11 years ago
Jonathan Frederic
4a7466b9e8
Dynamic traits.
11 years ago
Sylvain Corlay
19768ba7a3
Move color trait type to the widget package
11 years ago
Sylvain Corlay
7262de2216
Using the Color trait type for styling widgets
11 years ago
Min RK
9ded491c97
Merge pull request #7708 from SylvainCorlay/allow_none
...
allow_none=False for all trait types but Instance and Type
11 years ago
Sylvain Corlay
78d6a5023d
fix padding issue
11 years ago
Sylvain Corlay
5c16ffe559
removing redundant allow_none=False
11 years ago
Jason Grout
0bdfdc03ca
python3 does not like adding lists and map results
...
Thanks to @takluyver for pointing this out
11 years ago
Jason Grout
18cfbc0d11
Generate fontweight enum values without an extraneous variable from a comprehension
...
In python 2, the comprehension will create a new class attribute, i. Using a map will not create the extra local variable.
11 years ago
Jonathan Frederic
73637fb694
Merge pull request #7097 from jasongrout/widget-visibility
...
Expand the semantics of the widget visible attribute to allow for visibility: hidden
11 years ago
Min RK
7d465c7e96
Merge pull request #7139 from jdfreder/widget-space-fix
...
Fix padding of widgets.
11 years ago
Jonathan Frederic
2cc041444a
Explicit 2.5px
11 years ago
Jonathan Frederic
cb12229480
Fix padding of widgets.
11 years ago
Jonathan Frederic
d466601dbb
Persistence API,
...
This is a combination of 10 commits.
Enable widget instanciation from front-end.
Address @minrk 's review comments.
Make API that allows users to persist widget state easily.
Added support for view persistence
Started adding support for model persistence.
Half way there!
Finished persistence API.
Move persistence code into the widget framework.
Fin.
Bug fixes
11 years ago
Jason Grout
26bec1ad36
Add None as a widget visible value to allow for visiblity: hidden
...
Now, visible can have three values:
* True - show the widget
* False - hide the widget and collapse the empty space
* None - hide the widget and show the empty space
11 years ago
Min RK
b5e7ce30ca
handle setting Widget.comm = None
...
which is done in `Widget.close`
fixes loads of warnings in widget test output, caused every time a widget is closed.
11 years ago
Sylvain Corlay
ed5e602950
jupyter -> IPython
11 years ago
Sylvain Corlay
374459e5e7
Adding custom keys for core jptr notebook
11 years ago
Sylvain Corlay
18e77a090a
registering core widgets
11 years ago
Sylvain Corlay
e5b347804a
widget registry
11 years ago
Jonathan Frederic
ba77877c18
Rebase fixes
11 years ago
Jonathan Frederic
db10ae8f2d
s/target_name/widget_class
11 years ago
Jonathan Frederic
cb2c76999c
Address some more review comments...
11 years ago
Jonathan Frederic
a68df8a8b1
Address @minrk 's review comments.
11 years ago
Jonathan Frederic
fbca0bfa3f
Rebase fixes.
11 years ago
Jonathan Frederic
2b5ebb9e8f
Make Python push initial state.
...
Also added initial state push callback.
11 years ago
Jonathan Frederic
e7ee9c12b3
Enable widget instanciation from front-end.
11 years ago
Thomas Kluyver
031530da42
Support specifying requirejs modules for widget models
11 years ago
Jonathan Frederic
79670e8afb
Merge pull request #6494 from takluyver/widget-comm-require
...
Allow widget views to be loaded from require modules
11 years ago
Jonathan Frederic
1172876191
Add version trait to Widget base,
...
From widget Trello: version numbers for widget models;
when reloaded, will give the widget a chance to do
something intelligent or fail (by default) if the
version number doesn't match.
11 years ago
Min RK
60bfcf8c74
Merge pull request #6665 from jdfreder/travis_please_run_on_this
...
Separate widget model name from com target name.
11 years ago
Jonathan Frederic
4b968ece0b
s/target_name/model_name
11 years ago
Jonathan Frederic
24096b0f45
Separate widget model name from com target name.
11 years ago
Jonathan Frederic
60531c917f
Merge pull request #6481 from jdfreder/intvalidatefix
...
Fix bug in bounded int/float logic.
11 years ago
Thomas Kluyver
09b10dcb86
Make changes suggested by @jdfreder
11 years ago
Thomas Kluyver
5953a3f874
Allow widget views to be loaded from require modules
...
This required refactoring things that create widget views to use
callbacks instead of return values.
11 years ago
Jonathan Frederic
f83140dae8
s/long thing/set_state
11 years ago
Jonathan Frederic
341527779b
Fix notify_trait getting called too early.
11 years ago
Sylvain Corlay
a9fca81e95
Set default view to None and never display widget with no view
11 years ago
Jonathan Frederic
aec576a5f2
Fix infinite loop typo
11 years ago
Brian E. Granger
4ec1a3b41e
Merge pull request #6235 from jdfreder/addclass
...
Remove add/remove_class and set/get_css.
11 years ago
Jonathan Frederic
d4d554052e
Address problems found in in-person review
11 years ago
Jonathan Frederic
02e3a58030
s/fore_color/color
...
s/back_color/background_color
12 years ago
Jonathan Frederic
78db5dc24e
Merge pull request #6377 from jasongrout/fix-widget-prefix
...
Strip the IPY_MODEL_ prefix from widget IDs before referencing them.
12 years ago