Jonathan Frederic
0978065269
Remove view.show
11 years ago
Jonathan Frederic
a56a6f5657
Document set_state_callbacks and,
...
make load_state callback support promises.
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
5d4b83ba4a
Add an event that fires before the notebook saves
11 years ago
Jonathan Frederic
71d2d47036
Fix, only return views that are direct children of the cell
11 years ago
Jonathan Frederic
a53f4cc9dd
Log save state callback failures
11 years ago
Jonathan Frederic
db62a210e7
Another that = this
11 years ago
Jonathan Frederic
f060947eb9
This, that, and the other thing
11 years ago
Jonathan Frederic
8a5770b811
Add convenience API
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
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
63f8566c6f
Wait for any promises returned by a view's render method before considering the view created
...
This lets a view wait on children views to be created before considering itself created.
Thanks to @ssunkara for catching this.
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
9553f30222
Update widget selection containers to reflect how viewlist works
...
add_child takes a model and returns a view. remove_child takes a view and removes it.
the pop_child_view method is now gone.
11 years ago
Jason Grout
247ebf16f0
Add comments emphasizing the order of steps in widget box remove() methods
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
Jason Grout
307a320284
tweak documentation for viewlists
11 years ago
Jason Grout
93f658bc9b
Make a copy of the input list so that changes to the children list don't automagically change our reference list
11 years ago
Jason Grout
7658bab99f
Missing semicolon
11 years ago
Jason Grout
a6b901fdd3
Make state_change initialization more conventional
11 years ago
Jason Grout
0164fd32ca
Make error messages more consistent
11 years ago
Jason Grout
88ed50afad
Refactor the do_diff and manual child view lists into a separate ViewList object
11 years ago
Jason Grout
2b96a97118
Simplify error-handling code
...
Thanks to @jdfreder for this change.
11 years ago
Jason Grout
da8cab76dd
Clean up promises code some more.
11 years ago
Jonathan Frederic
db2ef15b81
Address @carreau 's comments
11 years ago
Jonathan Frederic
d033d6c1ea
Make output widget reactive.
11 years ago
Jonathan Frederic
a5779bcd0e
Output Widget
11 years ago
Matthias Bussonnier
0ee990614d
Merge pull request #6923 from SylvainCorlay/toggle_button_tooltip
...
Tooltip on toggle button
11 years ago
Thomas Kluyver
7cf7d3f202
Merge pull request #6818 from jdfreder/race_conditions
...
Add promises to the widget framework.
11 years ago
Jonathan Frederic
f9d730d01e
Address @takluyver 's review comments
11 years ago