Matthias Bussonnier
77ec6fdfa2
Merge pull request #6205 from Carreau/momentjs
...
use momentjs for nicer dates
12 years ago
Brian E. Granger
4b22230896
Merge pull request #6305 from minrk/switch-kernel-close-ws
...
JS: close WebSockets when killing kernels
12 years ago
Brian E. Granger
94f717781d
Merge pull request #6125 from jdfreder/flex
...
Embrace the flexible box model in the widgets
12 years ago
Jonathan Frederic
62bd36bcc9
s/that/this bug
12 years ago
Jonathan Frederic
be3ba35736
Fix typo in deprecated class name.
12 years ago
Jonathan Frederic
8877d32c4e
Merge pull request #6194 from SylvainCorlay/immediate-widget-comm
...
Allow model id to be set externally on creation of the widget.
12 years ago
Jonathan Frederic
ed593f02f1
Merge pull request #6171 from tarzzz/slider-value-validate
...
Validate slider value, when limits change
12 years ago
MinRK
d5a4553b8e
improve indicators and handling of dead kernels and broken websocket connections
...
I think it's still possible to get to a state with no kernel and insufficient indication.
Imperfect, but an improvement.
12 years ago
MinRK
7ee8403ed8
allow slash in root->tree redirect
...
before #6117 , only `/base_url/` worked,
after #6117 , only `/base_url worked,
after this PR, both should work.
12 years ago
MinRK
568034c349
use write_error instead of get_error_html
...
get_error_html is removed in tornado 4.0
12 years ago
Jonathan Frederic
2790684a17
Fixed typo
12 years ago
Jonathan Frederic
a12b302597
renamed: widget_container.js -> widget_box.js
12 years ago
Jonathan Frederic
afdba2fd47
Fix logic, use box where applicable
12 years ago
Jonathan Frederic
9b5ece6661
Make popup inherit from widget box
12 years ago
Jonathan Frederic
371b12a9b0
Fab CSS
12 years ago
Jonathan Frederic
0aca365718
Address Sylvain's comments.
12 years ago
Tarun Gaba
258b888835
added 'var'
12 years ago
Tarun Gaba
dda92ff7ea
Removed another stray alertO
12 years ago
Tarun Gaba
825186c868
Removed alert statement!
12 years ago
Tarun Gaba
539596bcdd
adressed @jdfrederer's concern!
12 years ago
Jonathan Frederic
690059f8f8
Merge pull request #6296 from jasongrout/sync-hold
...
Add a new context manager, Widget.hold_sync(), which holds any syncing until the manager exits
12 years ago
MinRK
0909694b50
avoid race condition when deleting/starting sessions
...
javascript doesn't guarantee the order of AJAX requests,
so we give `Session.delete` and `Kernel.kill` a callback signature.
Changing the kernel type calls `Notebook.start_kernel`,
which terminates the previous session, if defined,
before starting the new one.
A flag is stored, to prevent multiple simultaneous attempts to start sessions, raising a SessionAlreadyStarting Error,
preventing the spec_changed event from firing.
12 years ago
MinRK
bd5a88e954
handle undefined or closed zmq_stream in on_message
...
can happen if a message is waiting in a pipe and the web socket is closed before the message is handled.
And give ZMQChannels a nice repr with their kernel ID
12 years ago
MinRK
6d542013a4
add utils.ajax_error_msg for extracting the JSON error message.
12 years ago
MinRK
cb3da26e61
display JSON error message on failed notebook load
...
if there is one (escaped for safety).
12 years ago
MinRK
e3696996be
JS: close WebSockets when killing kernels
...
by calling Kernel.stop_channels() in Session.delete and Kernel.kill
12 years ago
Jonathan Frederic
2db702fa57
Filenames s/container/box
12 years ago
Jonathan Frederic
d985ee86c6
s/Container/Box
12 years ago
Jason Grout
5cd46788f9
Before syncing a widget's state, check first for the property lock, then for the widget state lock
12 years ago
Jason Grout
af26d9cc24
Add a new context manager, Widget.hold_sync(), which holds any syncing until the manager exits
...
Sometimes for consistency or efficiency purposes, it makes sense to update
a group of properties all at once. This context manager makes this possible.
We also fix a bug where send_state was not passing the key on to get_state.
12 years ago
Sylvain Corlay
f9fa4ada06
allowing widet id to be set externally
12 years ago
Jason Grout
8513f673e3
Make the widget comm attribute more straigtforward
...
Instead of automagically instantiating a comm when it is accessed, require a call to open(). This makes the comm attribute much less magical, and hopefully more understandable.
12 years ago
Jason Grout
16c366d1b5
Automatically open a comm on creation of widgets
...
This will immediately create a model on the javascript side when a widget is created. This means that, for example, a widget that only interacts with its model can work without "displaying" it.
12 years ago
Jonathan Frederic
848c223785
Rebase cleanup
12 years ago
Jonathan Frederic
36721c73c6
Added some doc strings on the widgets.
...
Also address the comments Matthias left me.
12 years ago
Jonathan Frederic
dbb88f95cd
Make HBox and VBox helper functions
12 years ago
Sylvain Corlay
c9ed512d54
adding hbox and vbox
...
Conflicts:
IPython/html/static/widgets/js/widget_container.js
IPython/html/widgets/widget_container.py
12 years ago
Jonathan Frederic
170b13102e
Fix interact tests for rename
12 years ago
Jonathan Frederic
ba3033971e
Renamed *Widget to *,
...
depracted old names.
12 years ago
Jonathan Frederic
37f00f73d7
Added baseline and stretch
12 years ago
Jonathan Frederic
6faf86ee77
Embrace flexible box model
12 years ago
Jason Grout
d64627380b
Default view should be the base widget view class
12 years ago
Jonathan Frederic
6026ef45d2
Merge pull request #6266 from Carreau/fix-lgw-css
...
fix loginwidget css
12 years ago
Jonathan Frederic
ba0a805404
Merge pull request #6226 from jasongrout/css-top-default
...
Remove $el_to_style from the widget javascript code; '' now defaults to this.$el
12 years ago
Jonathan Frederic
fd50a3228e
Merge pull request #6250 from minrk/double-free-widget
...
avoid unregistering widget model twice
12 years ago
Matthias BUSSONNIER
d1dc31c9de
fix loginwidget css
12 years ago
Thomas Kluyver
c15284d716
Merge pull request #6238 from ivanov/cm-heading-fonts
...
proportional font-size when editing heading cells
12 years ago
Thomas Kluyver
b95de43b97
Merge pull request #6253 from jasongrout/highlighting-bug
...
Copy codemirror mode configuration instead of changing it
12 years ago
Jason Grout
c80709e5a3
Copy codemirror mode configuration instead of changing it
...
If we change it, the modified (wrong) mode is saved in the notebook, which
wrecks havoc on highlighting once the notebook is saved and reopened.
12 years ago
Thomas Kluyver
4db6295fba
Merge pull request #6249 from minrk/always-https-mathjax
...
always use HTTPS getting mathjax from CDN
12 years ago