Min RK
02b757770b
Merge pull request #8273 from SylvainCorlay/fixes_widget_serialization
...
Minor fixes on custom serialization, and traitlet hold_traits
11 years ago
Sylvain Corlay
6c4cd1c1be
Check for null value
11 years ago
Sylvain Corlay
672f5fc72c
minor fixes on custom serialization, and traitlet hold_traits
11 years ago
unknown
0745f35b2f
Pass the arguments to the callback in the on_some_change function
11 years ago
Sylvain Corlay
3b200d388b
Move _unpack_models to widget.js and widget serialization to widget.py
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
d6def13dbd
Fix serialization of models from js -> kernel
11 years ago
Jason Grout
50a0cd57ef
Handle case when pixel values are undefined or null
11 years ago
Jason Grout
5c797f9672
Simplify error handling for errors in sending sync messages from js
11 years ago
Jason Grout
18ff9c5e1c
Fix two calls to utils.reject (misplaced parens)
11 years ago
Jason Grout
c70f687c0e
Increment the pending_msgs counter immediately to avoid race conditions that send more messages
11 years ago
Jason Grout
4ef0a23839
work-in-progress for custom js serializers
11 years ago
Jason Grout
0b2f212786
Force display_message to be processed in order
...
Otherwise sometimes the display message will be processed before the update message.
11 years ago
Min RK
ffaa09492a
Merge pull request #7315 from Carreau/codacy2
...
miscellaneous cleanup
11 years ago
Jonathan Frederic
8e54937893
Fixed pre-display "pixel-like" widget attribute parsing
11 years ago
Matthias Bussonnier
4e2dfe2527
Some code cleanup in javascript and python
...
change patern that are prone to error, like function redifinition
and other.
11 years ago
Jonathan Frederic
9e67a34891
Bubble event and implement logic in CodeCell
11 years ago
Jonathan Frederic
2d40eb30d4
Make sure comm-dead is applied to the top widget view class
...
in all cases where the kernel disconnects.
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
Jonathan Frederic
095d8b2feb
Merge pull request #7143 from jasongrout/viewlist-promises
...
Update viewlists to store a list of promises for views
11 years ago
Jason Grout
967d83104f
Missing return
...
Thanks to @jdfreder for catching this in review!
11 years ago
Jason Grout
49541066f1
Update viewlists to store a list of promises for views
11 years ago
Jonathan Frederic
52c8f14223
Added changes discussed with @jasongrout
11 years ago
Jonathan Frederic
0978065269
Remove view.show
11 years ago
Jonathan Frederic
0c737867fe
Rebase fixes
11 years ago
Jonathan Frederic
16e3bad23f
Address @jasongrout 's review comments, take 2
11 years ago
Jonathan Frederic
e02a5ec201
Promises...
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
Min RK
befb16ebe3
Merge pull request #6948 from bollwyvl/graceful-mathjax-widgets
...
Ignore failure of widget MathJax typesetting
11 years ago
Jonathan Frederic
e519371402
Merge pull request #7093 from jasongrout/model-views
...
Make the model.views dict a dict of promises for views
11 years ago
Nicholas Bollweg (Nick)
83757b6a0e
moving typeset to utils, usage in cell and outputarea
11 years ago
Nicholas Bollweg (Nick)
c95a9aaf80
accept node or selection
11 years ago
Nicholas Bollweg (Nick)
b17a40d950
moving typeset to DOMWidgetView
11 years ago
Nicholas Bollweg (Nick)
57f05c4a2b
reversing order of arguments, as text may already exist
11 years ago
Nicholas Bollweg (Nick)
00fc31b0a8
also setting text in widget.typset
11 years ago
Nicholas Bollweg (Nick)
9cd878cf0f
moving, checking MathJax typesetting to WidgetView
...
widget rendering should not fail hard if MathJax is not available
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
Jonathan Frederic
5a9e4d7986
Manual fixes
11 years ago
Jonathan Frederic
b53386b37b
Ran function comment conversion tool
11 years ago
Jason Grout
13c1b95fbd
Make the model.views dict a dict of promises for views
...
Otherwise, there is a race condition where the model doesn't know about views until they are actually created.
11 years ago
Jason Grout
3c98127f7c
remove obsolete optimization
11 years ago
Jason Grout
e6a8ef00e0
Catch errors after our then()s, instead of in parallel with them (this missing exceptions)
...
When an error is thrown in a then() success handler, it doesn't call the same then()'s error handler.
I also made all of the utils.reject handlers verbose to aid in debugging.
11 years ago
Jason Grout
efe7098a60
Fix viewlist to use promises correctly
...
A viewlist wasn't getting properly populated before. This also switches the list update to use splice for in-place updates.
11 years ago
Jason Grout
e7065d5a9f
Remove obsolete logic: storing references to child views in a view
...
Users are responsible for keeping track of views they create and removing them in a view's remove() method
11 years ago
Jason Grout
53472ba91b
reimplement the add/remove class logic to not use do_diff and remove do_diff
11 years ago
Jason Grout
1e8b2473b3
Merge branch 'viewlists' of https://github.com/jasongrout/ipython into viewlists
11 years ago
Jason Grout
05d013db59
At least log an error if there is no create or remove defined.
...
We might just remove this...
11 years ago
Jason Grout
bc0cb3c8b5
Do something about do_diff being used for the class stuff in widgets
11 years ago
Jason Grout
88084db35d
Return the viewlist from the update promise so that you can use it immediately.
...
The pattern is:
viewlist.update(new_list).then(function(new_view_list) {
...
})
11 years ago
Jonathan Frederic
d181172948
Implement view logic in selection containers.
11 years ago