Matthias Bussonnier
2c65ea0416
Merge pull request #6431 from jhamrick/input_ui_focus
...
Register input with keyboard manager
2014-09-18 14:37:51 +02:00
Matthias BUSSONNIER
9d58482944
Expand user home path in template search path.
...
cause that pretty much always what you want to do if you have a `~` ina
path.
2014-09-18 14:35:30 +02:00
Jonathan Frederic
0bd868888e
Make HeadingScrollManager scroll to heading elements, not cells.
2014-09-17 16:31:00 -07:00
Sylvain Corlay
769e7fa108
rename to on_atomic_change
2014-09-17 21:31:55 +00:00
MinRK
d65244d34c
rename webapp_settings to tornado_settings
...
deprecate `webapp_settings`
More informative name to those who would actually use this feature.
It sets overrides for the tornado global `settings` object.
2014-09-17 10:05:19 -07:00
MinRK
4bc339bd95
better log messages when rejecting cross-origin requests
2014-09-16 15:38:41 -07:00
Jonathan Frederic
9831e6ea1b
Make the default the single page scroller.
2014-09-16 13:52:58 -07:00
Jonathan Frederic
c957cbc9c2
Set heading scroll manager as default scroll manager.
2014-09-16 13:49:15 -07:00
Jonathan Frederic
46eb5288bc
Scroll to all heading levels <= target level.
2014-09-16 13:49:15 -07:00
Jonathan Frederic
f6adf3e064
Fixed dumb typo,
...
forgot to update scrollmanager ref to scroll_manager.
2014-09-16 13:49:14 -07:00
Jonathan Frederic
3f9fea0328
Added comments clarifying scroll units
2014-09-16 13:49:14 -07:00
Jonathan Frederic
8c0c04910b
options bug fix
2014-09-16 13:49:14 -07:00
Jonathan Frederic
3ff4d4c16e
Address review comments
2014-09-16 13:49:14 -07:00
Jonathan Frederic
27058f4804
Removed ScrollManager selector combo.
2014-09-16 13:49:14 -07:00
Jonathan Frederic
e843a3d0e4
Fixed rebase indents
2014-09-16 13:48:19 -07:00
Jonathan Frederic
8617696c5b
Added heading and slideshow scroll managers
2014-09-16 13:48:19 -07:00
Jonathan Frederic
7e7683a587
Added scroll mode selector,
...
fixed rebase conflicts.
2014-09-16 13:47:28 -07:00
Jonathan Frederic
62a21b0e6f
Add ScrollManager to global ipy namespace in main.js instead of,
...
in the bottom of the scroll manager js file.
2014-09-16 13:45:30 -07:00
Jonathan Frederic
5c5025f3b6
Added smooth scroll to replace std browser behavior.
2014-09-16 13:45:30 -07:00
Jonathan Frederic
c2d72353a2
Fixed bug
2014-09-16 13:45:29 -07:00
Jonathan Frederic
617f078165
Make slideshow toolbar add classes to modified cells.
2014-09-16 13:45:29 -07:00
Jonathan Frederic
06ad682d68
Add scrollmanager
2014-09-16 13:45:29 -07:00
Min RK
a712e079b4
Merge pull request #6483 from jhamrick/fix-heading-anchors
...
Trim anchor link in heading cells, fixes #6324
2014-09-16 10:57:40 -07:00
Jonathan Frederic
591b2b3ad7
Tabs->Spaces
2014-09-16 10:41:44 -07:00
Jonathan Frederic
02e3a58030
s/fore_color/color
...
s/back_color/background_color
2014-09-16 10:17:59 -07:00
Jonathan Frederic
0acd8daf71
Merge pull request #6438 from SylvainCorlay/model_destroy_message
...
Destroy backbone model on comm:close
2014-09-16 09:47:49 -07:00
Sylvain Corlay
e809fcb545
stop listening
2014-09-16 14:31:26 +00:00
Jessica B. Hamrick
d46606a48b
Trim anchor link in heading cells, fixes #6324
2014-09-16 00:05:14 -07:00
Jonathan Frederic
9c1c4f9f0a
Fix bug in bounded int/float logic.
2014-09-15 22:24:49 -07:00
MinRK
d06e337881
only compare host:port in Websocket.check_origin
...
don't include protocol
- matches tornado's own behavior
- avoids incorrect 403 in http-behind-https proxy situations.
2014-09-15 17:17:08 -07:00
Sylvain Corlay
75cb63fba2
Adding a comment and renaming on_bulk_change to on_change
2014-09-15 22:38:29 +00:00
Sylvain Corlay
06747c1ada
simplification of trigger destroy
2014-09-15 21:32:46 +00:00
Jonathan Frederic
4495fa5246
Merge pull request #6437 from weichm/patch-1
...
"event" is not defined error in Firefox
2014-09-15 13:51:14 -07:00
Jonathan Frederic
78db5dc24e
Merge pull request #6377 from jasongrout/fix-widget-prefix
...
Strip the IPY_MODEL_ prefix from widget IDs before referencing them.
2014-09-15 13:40:09 -07:00
Pierre Gerold
406860fd35
Typo and presentation
2014-09-15 14:58:23 +02:00
Pierre Gerold
98f2d989b6
Modify cells converter funcs to keep metadata through
2014-09-15 12:59:31 +02:00
Richard Everson
be80e62340
Check time of last ping before timing out a missing pong.
2014-09-14 23:22:05 +01:00
Sylvain Corlay
222dc5fb3e
Destroy backbone model on comm:close
2014-09-14 11:46:12 -04:00
sylvain.corlay
e77b21cb22
optimization of WidgetModel.apply_update
2014-09-13 20:13:08 -04:00
sylvain.corlay
6eea0c37aa
Added on_bulk_change method in WidgetModel
2014-09-13 16:27:52 -04:00
Jason Grout
78ae8b36c5
Fix several small bugs in the notebook trust framework
...
1. The trust dialog is not called with the notebook context, so we have to use the closure to bind to a notebook event.
2. Replace != with !==
3. The trust_changed.Notebook event default handler expects the trust value to be value key inside an object. In fact, the event handler is redundant with the code--both seem to set the trust value of the current notebook.
2014-09-12 17:22:03 +00:00
Thomas Kluyver
a6f5ed619f
Preserve symlinks in atomic writing
2014-09-11 17:09:17 -07:00
Thomas Kluyver
9bde43a7fd
Copy file metadata in atomic save
...
Closes gh-6405
2014-09-11 16:47:10 -07:00
MinRK
5bc118fb6c
handle system-wide kernelspecs
...
in html tets_kernelspecs_api, which can cause counts to be greater than 2
2014-09-10 14:30:44 -07:00
Thomas Kluyver
fdb375e0ef
Merge pull request #6380 from ellisonbg/latex-complete
...
Adds Julia-style latex->unicode tab completion
2014-09-09 14:27:44 -07:00
Thomas Kluyver
bdb5481a1e
Remove leftover debugging
2014-09-09 12:47:02 -07:00
weichm
06b2926a0a
"event" is not defined error in Firefox
...
see http://stackoverflow.com/questions/20522887/referenceerror-event-is-not-defined-error-in-firefox
"WebKit follows IE's old behavior of using a global symbol for "event", but Firefox doesn't..."
2014-09-08 21:18:34 +02:00
Jessica B. Hamrick
b8d3d2c6af
Register input with keyboard manager, fixes #6426
2014-09-07 13:08:18 -07:00
Matthias Bussonnier
97e99d0661
Merge pull request #6412 from takluyver/sessions-rest-api-fix
...
Sessions rest api fix
2014-09-06 15:04:13 -07:00
Matthias Bussonnier
6a0fc370fd
Merge pull request #6427 from jhamrick/input_ui_generator
...
Add textbox celltoolbar UI element generator
2014-09-06 14:35:53 -07:00
Jessica B. Hamrick
3aada4008c
Rename chkb to text
2014-09-06 14:18:42 -07:00
Jessica B. Hamrick
c3c11e5820
Initial version of textbox celltoolbar ui element
2014-09-06 13:34:43 -07:00
Thomas Kluyver
a47575df63
Fix some doc build warnings
2014-09-06 11:35:14 -07:00
Matthias Bussonnier
3dc94d6911
Merge pull request #6419 from takluyver/sort-test-dir-contents
...
Sort directory contents in test before assertion
2014-09-05 19:35:57 -07:00
Thomas Kluyver
fa6056e9ed
Sort directory contents in test before assertion
...
Should fix recent test failures, but I can't replicate failure on my
computer, so it's not clear that it's fixed.
2014-09-05 18:44:58 -07:00
Fernando Perez
a5fd908b28
Merge pull request #6408 from minrk/new-cell-code
...
make default cell type configurable
2014-09-05 18:41:35 -07:00
MinRK
6cee444630
make default cell type configurable
...
- adds IPython.notebook.default_cell_type
- default is 'code' (matching IPython 2.0)
- special heuristic values include:
- 'selected': default to selected cell (current master behavior)
- 'above': default to cell above
- 'below': default to cell below
2014-09-05 11:28:00 -07:00
Matthias BUSSONNIER
186c8ae41d
remove useless comment
2014-09-05 11:14:37 -07:00
Matthias BUSSONNIER
a9b4bdc03f
Move md-cell display logic to css
2014-09-05 11:03:48 -07:00
Thomas Kluyver
b2737e668e
Add tests and fix some issues
...
Tests taken from #6360
2014-09-05 10:16:37 -07:00
Thomas Kluyver
0e109ee4be
Correct comment
2014-09-05 09:40:02 -07:00
MinRK
dbe65d0cd5
remove unused TreeRedirectHandler
2014-09-04 17:40:48 -07:00
MinRK
379374b5d9
make the default url customizable
...
this is the page redirected to from `/`,
which defaults to `/tree`.
also changes the redirect code to 302 from 301,
which should cause less grumbling about caching.
2014-09-04 17:40:48 -07:00
Thomas Kluyver
7e681c1c53
Merge pull request #6302 from minrk/ws-heartbeat-timeout
...
close websocket connections on ping/pong timeout
2014-09-04 15:21:25 -07:00
Matthias Bussonnier
df67bd1720
Merge pull request #6406 from minrk/celltoolbar-rendered
...
don't hide cell toolbar on rendered text cells
2014-09-04 15:19:59 -07:00
Thomas Kluyver
ca8dabf705
Fix 404 error when accessing nonexistant session
2014-09-04 15:13:59 -07:00
Thomas Kluyver
4c4af25734
Fix failure message for tests
2014-09-04 15:13:59 -07:00
Thomas Kluyver
76b05b24af
Handle sessions where the kernel has been killed
2014-09-04 15:13:59 -07:00
Thomas Kluyver
81b06d81a1
Merge pull request #6358 from minrk/contents-missing
...
fix directory listing with broken symlinks
2014-09-04 14:43:45 -07:00
MinRK
78fdc1ebb4
move mergeopt to utils
...
from Cell
2014-09-04 11:15:45 -07:00
MinRK
6038612732
don't hide cell toolbar on rendered text cells
...
because it annoys @Carreau
2014-09-03 17:08:55 -07:00
Matthias Bussonnier
9e8cf39956
Merge pull request #6258 from patricktokeeffe/patch-1
...
Update custom.js
2014-09-03 10:53:24 -07:00
Min RK
aaa027f503
Merge pull request #6267 from Carreau/less-jq-ui
...
Remove some jquery-UI classes.
2014-09-02 19:35:45 -07:00
Matthias BUSSONNIER
7752320295
get rid of some jq-ui- style
2014-09-02 17:47:59 -07:00
Min RK
8a0773fd84
Merge pull request #6290 from takluyver/deprecate-rmagic
...
Deprecate rmagic
2014-09-02 17:16:13 -07:00
Min RK
fbae96f9cb
Merge pull request #6269 from takluyver/atomic-save
...
Implement atomic save
2014-09-02 10:59:38 -07:00
MinRK
58ecfc2376
catch any exception while waiting to connect
...
requests 2.4 changed the exception type for a failed connection
2014-08-31 21:50:16 -07:00
Brian E. Granger
a67c7e83a6
Adding tests and limiting CM mode to python 3.
2014-08-29 09:55:40 -04:00
Brian E. Granger
2dfd4079ec
Cleaning up and only doing latex completion for python 3.
2014-08-28 21:50:26 -04:00
Brian E. Granger
27f2f6baaa
Adding regexp for unicode identifers to CM mode.
2014-08-28 21:42:04 -04:00
Jason Grout
2acee4a269
Strip the IPY_MODEL_ prefix from widget IDs before referencing them.
2014-08-28 19:52:20 +00:00
Jonathan Frederic
2f9dcb852c
Fab CSS
2014-08-28 11:15:35 -07:00
Jonathan Frederic
cb9014e42c
Fixed rebase bugs and other bugs.
2014-08-28 11:15:35 -07:00
Jonathan Frederic
fa1c6f93f1
Added bootstrap3 progress bar classes
2014-08-28 11:15:35 -07:00
Jonathan Frederic
9b4d19bad7
Added Bootstrap specific classes,
...
and fixed a few bugs here and there...
2014-08-28 11:15:35 -07:00
Jonathan Frederic
a0e70e350f
Fix some bugs found by the widget examples,
...
add margin and padding base traits,
add overflow traits to box base.
2014-08-28 11:15:24 -07:00
Jonathan Frederic
834fe2d044
Fab CSS
2014-08-28 11:11:16 -07:00
Jonathan Frederic
42cc27e1f5
Finished style attributes.
2014-08-28 11:09:55 -07:00
Jonathan Frederic
fdcf263965
Partial implementation of styles
2014-08-28 11:09:55 -07:00
Jonathan Frederic
9af77a6374
Initial crack at using specific traits for styling.
2014-08-28 11:09:55 -07:00
Jonathan Frederic
1797243f7a
Fix tests
2014-08-28 11:09:55 -07:00
Jonathan Frederic
f85a01041c
Remove add/remove class methods,
...
Remove helper set/get css methods
2014-08-28 11:09:55 -07:00
Paul Ivanov
78918ba827
Merge pull request #6359 from minrk/build-css
...
build css
2014-08-28 10:35:02 -07:00
Paul Ivanov
583fc21488
Merge pull request #6371 from minrk/dashboard-test-quickfix
...
minor fixes in dashboard tests
2014-08-28 10:34:01 -07:00
MinRK
fb0421107c
minor fixes in dashboard tests
...
events and regular expressions weren't quite right, which could cause occasional test failures.
2014-08-27 13:51:49 -07:00
MinRK
6345b6c874
fix handling of no-checkpoint-defined
...
a few typos and missing handling of undefined checkpoint
regression introduced in #6205
2014-08-27 13:17:19 -07:00
Min RK
89f5ec3677
Merge pull request #6306 from coderforlife/master
...
Minor improvements to file upload.
2014-08-26 17:22:45 -07:00
MinRK
318d46d647
build css
...
looks like a recent PR didn't have a final render of the LESS
2014-08-26 09:33:14 -07:00
MinRK
819c3c326c
fix directory listing with broken symlinks
...
directory listing would 404 if any listed file doesn't exist
(e.g. symlink to missing target).
Previously-failing test included.
2014-08-26 09:12:54 -07:00
Gordon Ball
859e9f5261
Change from on_demand kwarg to interact_choose function
2014-08-26 10:37:32 +02:00
Gordon Ball
8296f24904
Merge master
2014-08-26 10:25:38 +02:00
Jonathan Frederic
cf0ca9d4a5
Merge pull request #6050 from chronitis/interact-range-widgets
...
Range widgets
2014-08-25 21:40:21 -07:00
Jonathan Frederic
1b29be13c6
Merge pull request #6332 from jasongrout/widget-property-lock
...
Widget property lock should compare json states, not python states
2014-08-25 10:12:04 -07:00
Gordon Ball
9383822d7a
Clean up validation in __init__
2014-08-24 12:26:56 +02:00
Gordon Ball
a096d01310
Test case for setting only lower or upper, no sensible default so should be an error
2014-08-24 12:26:02 +02:00
Gordon Ball
a12b1a50a9
Change range
trait to _range
2014-08-24 11:48:19 +02:00
Gordon Ball
1a8b77231e
Remove errant tabs from js
2014-08-24 11:32:03 +02:00
Matthias Bussonnier
77ec6fdfa2
Merge pull request #6205 from Carreau/momentjs
...
use momentjs for nicer dates
2014-08-23 22:19:08 +02:00
Brian E. Granger
9e16415907
Initial messing around.
...
Latex tab completion will have to be done outside the normal
completer logic as the completer line splitting logic uses
\\ as a special character to split lines on. I probably want
to put the latex completions first and it if finds any matches,
don't do any other completion logic. The only issue is that might
short circuit dir/path matching on windows. Hmmm.
2014-08-22 17:28:13 -04:00
Gordon Ball
b8c0afbb55
Merge master
2014-08-22 10:19:03 +02:00
Brian E. Granger
4b22230896
Merge pull request #6305 from minrk/switch-kernel-close-ws
...
JS: close WebSockets when killing kernels
2014-08-20 17:38:46 -04:00
Brian E. Granger
94f717781d
Merge pull request #6125 from jdfreder/flex
...
Embrace the flexible box model in the widgets
2014-08-20 14:15:22 -04:00
Jonathan Frederic
62bd36bcc9
s/that/this bug
2014-08-20 09:34:25 -07:00
Jonathan Frederic
be3ba35736
Fix typo in deprecated class name.
2014-08-20 09:34:05 -07:00
Gordon Ball
8838762b30
Remove a rogue print statement
2014-08-20 16:49:52 +02:00
Gordon Ball
08895738f2
Merge master
2014-08-20 16:44:58 +02:00
Gordon Ball
05f07f1f71
Add a number of extra tests for the range widgets
2014-08-20 16:25:53 +02:00
Gordon Ball
2be045fe25
Support both value tuple and upper, lower traits for both int and float widgets
2014-08-20 16:25:33 +02:00
Jonathan Frederic
8877d32c4e
Merge pull request #6194 from SylvainCorlay/immediate-widget-comm
...
Allow model id to be set externally on creation of the widget.
2014-08-19 14:33:03 -07:00
Jonathan Frederic
ed593f02f1
Merge pull request #6171 from tarzzz/slider-value-validate
...
Validate slider value, when limits change
2014-08-18 20:03:14 -07:00
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.
2014-08-18 10:50:25 -07:00
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.
2014-08-18 10:47:20 -07:00
Jason Grout
0e5ceca059
Make the widget property_lock store the JSON state, not the original object
...
Comparison between arbitrary python objects can get crazy, whereas we really
only care about if the JSON state we are syncing is different. So with this change,
we store and check against the JSON state.
2014-08-18 17:28:07 +00:00
MinRK
568034c349
use write_error instead of get_error_html
...
get_error_html is removed in tornado 4.0
2014-08-15 13:41:13 -07:00
Jonathan Frederic
2790684a17
Fixed typo
2014-08-15 10:41:43 -07:00
Jonathan Frederic
a12b302597
renamed: widget_container.js -> widget_box.js
2014-08-15 10:37:46 -07:00
Jonathan Frederic
afdba2fd47
Fix logic, use box where applicable
2014-08-15 10:14:04 -07:00
Jonathan Frederic
9b5ece6661
Make popup inherit from widget box
2014-08-14 16:09:50 -07:00
Jonathan Frederic
371b12a9b0
Fab CSS
2014-08-14 15:53:13 -07:00
Jonathan Frederic
0aca365718
Address Sylvain's comments.
2014-08-14 15:51:41 -07:00
Tarun Gaba
258b888835
added 'var'
2014-08-15 02:59:28 +05:30
Tarun Gaba
dda92ff7ea
Removed another stray alertO
2014-08-15 02:21:53 +05:30
Tarun Gaba
825186c868
Removed alert statement!
2014-08-15 02:19:26 +05:30
Tarun Gaba
539596bcdd
adressed @jdfrederer's concern!
2014-08-15 02:18:38 +05:30
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
2014-08-14 12:45:19 -07:00
Jeffrey Bush
f141a6926a
File list refreshes no longer move the upload filename boxes.
...
The new file list is always placed after the upload filename boxes. I also removed the autorefresh guards against refreshing while having an upload box since this is no longer a problem.
2014-08-13 23:58:20 -07:00
Jeffrey Bush
1f68e22486
Fixed many edge cases in file uploads.
...
When there is an error reading a file, a message is shown (I could reproduce this easily by dragging a folder onto the list), added a missing "return false;" after an illegal notebook was detected, and we prevent no-name files and files starting with dots (which will not be visible in dashboard and automatically overwritten).
2014-08-13 22:55:53 -07:00
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.
2014-08-13 22:11:32 -07:00
Jeffrey Bush
305c734830
Uploading a file with a name that already exists asks the user if they want to overwrite.
...
This is not perfect (it doesn't check against the real filesystem but the current list in the browser which may be stale) but it is better than nothing.
2014-08-13 22:07:57 -07:00
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
2014-08-13 21:51:52 -07:00
Jeffrey Bush
5fff038965
Added ESC keep to upload textbox to cancel.
2014-08-13 20:57:35 -07:00
Jeffrey Bush
defabcc772
Minor improvements to file upload.
...
Updated file upload so that the icon of the new upload item reflects if it is a file or notebook, added the ability to use the "Enter" key in the filename text box to cause the upload to happen, and make it so that the list of files refreshes immediately upon successful upload.
2014-08-13 17:16:05 -07:00
MinRK
6d542013a4
add utils.ajax_error_msg for extracting the JSON error message.
2014-08-13 14:40:51 -07:00
MinRK
cb3da26e61
display JSON error message on failed notebook load
...
if there is one (escaped for safety).
2014-08-13 14:27:12 -07:00
MinRK
e3696996be
JS: close WebSockets when killing kernels
...
by calling Kernel.stop_channels() in Session.delete and Kernel.kill
2014-08-13 14:21:14 -07:00
Jonathan Frederic
2db702fa57
Filenames s/container/box
2014-08-13 13:29:30 -07:00
Jonathan Frederic
d985ee86c6
s/Container/Box
2014-08-13 13:19:27 -07:00
MinRK
b3b168648a
close websocket connections on ping/pong timeout
...
we recently added ws pings for keep alive,
and we can now use the longs to close dead connections.
This can apparently happen when connections are not closed cleanly,
e.g. on VPNs.
Setting ws_ping_timeout = 0 disables the ping mechanism altogether.
2014-08-13 11:32:25 -07:00
Jonathan Frederic
865fb20c00
Merge pull request #6284 from jasongrout/patch-6
...
Default view should be the base widget view class
2014-08-12 13:06:59 -07:00
Jason Grout
5cd46788f9
Before syncing a widget's state, check first for the property lock, then for the widget state lock
2014-08-12 18:23:57 +00:00
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.
2014-08-12 17:29:41 +00:00
Thomas Kluyver
e60f8bdda1
Merge pull request #6228 from jdfreder/eventful-list-dict
...
Add EventfulList and EventfulDict trait types.
2014-08-11 18:09:04 -07:00
Sylvain Corlay
f9fa4ada06
allowing widet id to be set externally
2014-08-11 18:36:59 +00:00
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.
2014-08-11 18:36:59 +00:00
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.
2014-08-11 18:30:26 +00:00
Thomas Kluyver
347e16aa22
No need to check for rpy2 in test machinery
2014-08-11 10:06:31 -07:00
Jonathan Frederic
848c223785
Rebase cleanup
2014-08-08 15:00:22 -07:00
Jonathan Frederic
36721c73c6
Added some doc strings on the widgets.
...
Also address the comments Matthias left me.
2014-08-08 14:57:51 -07:00
Jonathan Frederic
dbb88f95cd
Make HBox and VBox helper functions
2014-08-08 14:57:51 -07:00
Sylvain Corlay
c9ed512d54
adding hbox and vbox
...
Conflicts:
IPython/html/static/widgets/js/widget_container.js
IPython/html/widgets/widget_container.py
2014-08-08 14:57:51 -07:00
Jonathan Frederic
170b13102e
Fix interact tests for rename
2014-08-08 14:56:11 -07:00
Jonathan Frederic
ba3033971e
Renamed *Widget to *,
...
depracted old names.
2014-08-08 14:56:11 -07:00
Jonathan Frederic
37f00f73d7
Added baseline and stretch
2014-08-08 14:56:10 -07:00
Jonathan Frederic
6faf86ee77
Embrace flexible box model
2014-08-08 14:56:10 -07:00
Gordon Ball
8c5218b581
Default to 25-75% of min-max if no value is set instead of 0-1
2014-08-07 21:32:25 +02:00
Jason Grout
d64627380b
Default view should be the base widget view class
2014-08-07 13:12:15 -04:00
Gordon Ball
ff3f952b18
Merge branch 'master' into interact-range-widgets
...
Conflicts:
IPython/html/static/style/ipython.min.css
IPython/html/static/style/style.min.css
IPython/html/static/widgets/js/widget_int.js
2014-08-07 17:11:06 +02:00
Paul Ivanov
6162c99028
nbconvert requires mistune
...
You get a cryptic error message from iptest if mistune is not installed.
Test group: nbconvert
E
======================================================================
ERROR: Failure: AttributeError ('module' object has no attribute 'nbconvert')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 403, in loadTestsFromName
module = resolve_name(addr.module)
File "/usr/lib/python2.7/dist-packages/nose/util.py", line 321, in resolve_name
obj = getattr(obj, part)
AttributeError: 'module' object has no attribute 'nbconvert'
----------------------------------------------------------------------
Ran 1 test in 0.001s
FAILED (errors=1
2014-08-06 15:37:29 -07:00
Jonathan Frederic
6026ef45d2
Merge pull request #6266 from Carreau/fix-lgw-css
...
fix loginwidget css
2014-08-06 10:56:41 -07:00
patricktokeeffe
c1971e9d42
Update custom.js
2014-08-05 11:19:48 -07:00
Thomas Kluyver
8b7d4c1c2f
Rework atomic_writing with tests & docstring
2014-08-05 10:50:09 -07:00
Jonathan Frederic
cffe958e4c
s/this/self
2014-08-04 14:22:16 -07:00
Jonathan Frederic
d31655f50a
kwarg on_events and hardcoded callbacks
2014-08-04 14:22:16 -07:00
Jonathan Frederic
e4860ae075
Use ternary operator for callback registration
2014-08-04 14:22:16 -07:00
Jonathan Frederic
22e210e981
Added on_events convinience method
2014-08-04 14:22:16 -07:00
Jonathan Frederic
3d6fcc6a60
Address review comments @takluyver
2014-08-04 14:22:16 -07:00
Jonathan Frederic
71ea1459ab
Add EventfulList and EventfulDict trait types.
2014-08-04 14:22:16 -07:00
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
2014-08-04 13:46:01 -07:00
Thomas Kluyver
04cbce2a14
Implement atomic save
...
Ping @fperez, this should avoid issues with corrupted/lost notebooks
when the disk is full, though I haven't worked out how to test it just
yet.
Closes gh-6254
2014-08-04 11:22:42 -07:00
Jonathan Frederic
fd50a3228e
Merge pull request #6250 from minrk/double-free-widget
...
avoid unregistering widget model twice
2014-08-04 10:25:46 -07:00
Matthias BUSSONNIER
d1dc31c9de
fix loginwidget css
2014-08-03 18:09:35 +02:00
patricktokeeffe
3f79d6dad1
Update custom.js
...
Explain different semantics required for instances versus functions or classes. Based on comments of @minrk in #5985 .
2014-08-01 16:20:50 -07:00
Thomas Kluyver
c15284d716
Merge pull request #6238 from ivanov/cm-heading-fonts
...
proportional font-size when editing heading cells
2014-08-01 10:03:42 -07:00
Thomas Kluyver
b95de43b97
Merge pull request #6253 from jasongrout/highlighting-bug
...
Copy codemirror mode configuration instead of changing it
2014-07-31 14:46:55 -07:00
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.
2014-07-31 21:25:34 +00:00
Thomas Kluyver
4db6295fba
Merge pull request #6249 from minrk/always-https-mathjax
...
always use HTTPS getting mathjax from CDN
2014-07-31 13:44:37 -07:00
MinRK
09c1354ea7
avoid unregistering widget model twice
...
widgets are registered when the comm is created;
closing unregisters them. Calling `close` a second time
should be a no-op.
2014-07-31 12:23:03 -07:00
MinRK
b47ddffd42
always use HTTPS getting mathjax from CDN
2014-07-31 12:03:44 -07:00
MinRK
fae77bd133
remove unused project_dir
2014-07-31 11:57:38 -07:00
MinRK
3e79eea46b
update contents per further review
...
- fix is_hidden always returning True on nonexistent files
- create hidden dir fails with 400
- don't read binary files twice
- logging improvements
- dialog on invalid notebook upload
- warn about disabled `--save`
2014-07-31 11:57:38 -07:00
MinRK
fb89646a29
various upload fixes
...
- recognize 201 as success (dataType must not be 'json')
- support uploading non-notebook files (b64-encoded)
2014-07-31 11:57:38 -07:00
MinRK
3c26b079f0
updates per review
...
- clarified docstrings and errors
- still more notebook/file renames
- configurable untitled names
- copy_from can be full path
- fix running, upload, new-tab behaviors in dashboard
Yay, review!
2014-07-31 11:57:38 -07:00
MinRK
d4fe081fe5
move /files/
redirect to base handlers
...
and reuse it in /nbconvert/html/…
closes #6137
2014-07-31 11:57:37 -07:00
MinRK
bec995aa63
updates per review
...
a few more notebook mentions in docstrings,
and inappropriate use of setdefault.
2014-07-31 11:57:37 -07:00
MinRK
2ea31b5ee0
use contents manager to handle redirect of /notebooks -> /files
...
avoids 404 on /files for visiting a nonexistent notebook
2014-07-31 11:57:37 -07:00
MinRK
93b300adda
support deleting empty directories
...
can’t copy directories
2014-07-31 11:57:37 -07:00
MinRK
260afd76ae
contents service review
...
- missed some s/notebook/file/ in docstrings
- manager doesn’t sort contents
2014-07-31 11:57:37 -07:00
MinRK
accf0878ae
test creating a directory with PUT
2014-07-31 11:57:37 -07:00
MinRK
8c4069cc00
add support and tests for uploading and saving regular files
2014-07-31 11:57:36 -07:00
MinRK
3674958b70
teach tree view about non-notebook files
2014-07-31 11:57:36 -07:00
MinRK
0c0eb43719
teach contents service about non-notebook files
2014-07-31 11:57:36 -07:00
MinRK
6cce477e07
rename notebooks service to contents service
...
minimal functional changes, committing because tests are passing.
2014-07-31 11:57:36 -07:00
MinRK
b73aa2b9f9
mv services/notebooks services/contents
2014-07-31 11:57:35 -07:00
Min RK
d093237f2f
Merge pull request #6216 from SylvainCorlay/comm-unregister
...
Unregistering comms in Comm Manager
2014-07-30 22:18:11 -07:00
Sylvain Corlay
1bbc915ac0
setting _comm to None
2014-07-30 23:16:24 -04:00
Paul Ivanov
fd53a306c4
Merge pull request #6197 from ivanov/set-text-rendered
...
changing text of cell should reset rendered status
2014-07-30 17:39:59 -07:00
Paul Ivanov
9cafcaa421
fix more style consistencies
2014-07-30 17:31:00 -07:00
Paul Ivanov
5e018bba0d
match font family when editing heading cells
2014-07-30 17:24:47 -07:00
Paul Ivanov
468e568ea7
appropriate heading level when loading from JSON
2014-07-30 17:23:58 -07:00
Matthias BUSSONNIER
8b20aee32e
use momentjs for nice dates
2014-07-30 23:37:07 +02:00
Min RK
a2a70b40e2
Merge pull request #6145 from Carreau/style-cleanup
...
JS/CSS Style cleanup
2014-07-30 13:36:04 -07:00
Jonathan Frederic
083671a572
Fix js-tests for new default selector logic.
2014-07-30 12:10:56 -07:00
Thomas Kluyver
9e2363a657
Merge pull request #6237 from jasongrout/iptest-profile-dir
...
Explicitly set the profile directory when running tests
2014-07-30 11:11:41 -07:00
Matthias BUSSONNIER
2899c766a1
remove var
2014-07-30 18:13:31 +02:00
Jason Grout
35c3095da0
Explicitly set the current working directory when running tests
...
Because of the profile directory searching algorithm, if the current
working directory has a directory named 'profile_default', that will
be used instead of the temporary profile directory the tests expect.
2014-07-30 14:35:10 +00:00
Paul Ivanov
66733621de
proportional font-size when editing heading cells
...
@MinRK @takluyver and I had the idea to do this when we were discussing #6225 .
2014-07-29 19:28:20 -07:00
Thomas Kluyver
4fc8af546b
Merge pull request #5859 from watercrossing/addPageUpDown
...
add page-up and page-down functionality to the autocomplete dropdown
2014-07-29 17:46:52 -07:00
Sylvain Corlay
ea52ef8704
del Widget.widgets[seld.model_id] in close rather than in __del__
2014-07-30 00:28:30 +00:00
Paul Ivanov
86f38a8f3b
call unrender() when setting text of cells
2014-07-29 16:24:53 -07:00
Min RK
254d372522
Merge pull request #6227 from Carreau/cellt-g-event
...
Use global event for celltoolbar
2014-07-29 15:32:43 -07:00
Sylvain Corlay
2c648fe4d0
bad call and missing call to unregister_comm
2014-07-29 20:11:34 +00:00
Thomas Kluyver
274cfb3af2
Merge pull request #6225 from ivanov/split-merge-heading-cells
...
allow splitting and merging of heading cells
2014-07-29 11:32:46 -07:00
Thomas Kluyver
a7abca5a9f
Merge pull request #6233 from Carreau/fix-6232
...
Fix doc, CodeMirror is installed via bower
2014-07-29 09:33:05 -07:00
Matthias BUSSONNIER
aad51f9527
rename ipevents to events for consistency
2014-07-29 15:57:07 +02:00
Matthias BUSSONNIER
2c4f2f98a6
Use global event for celltoolbar
2014-07-29 15:57:06 +02:00
Matthias BUSSONNIER
0adc3603c6
Fix doc, CodeMirror is installed via bower
...
Closes gh-6232
2014-07-29 15:41:20 +02:00
Jonathan Frederic
0ee948efca
Merge pull request #6200 from SylvainCorlay/widget-changes
...
Partial update of DOMWidgetView styling and simplification of containers.
2014-07-28 15:58:35 -07:00
Sylvain Corlay
c03a3eb6d2
making the use of options explicit
2014-07-28 22:22:11 +00:00
Matthias BUSSONNIER
d54e2c95af
rebuild css
2014-07-28 21:44:14 +02:00
Matthias BUSSONNIER
5e48b538b2
remove empty style methods of LoginWidget
2014-07-28 21:43:58 +02:00
Matthias BUSSONNIER
70eb95d04c
remove call to jquery-ui useless button()
2014-07-28 21:43:58 +02:00
Matthias BUSSONNIER
21222fe302
remove empty style function in page.js
2014-07-28 21:43:58 +02:00
Matthias BUSSONNIER
a72bd4f52e
use dataformat module explicitely
2014-07-28 21:43:57 +02:00
Matthias BUSSONNIER
b63cb1f34f
remove unused dependecy and css class
2014-07-28 21:43:57 +02:00
Matthias BUSSONNIER
8506e2c257
remove empty style function of save widget
2014-07-28 21:43:57 +02:00
Matthias BUSSONNIER
04088c9559
remove empty style function
2014-07-28 21:43:57 +02:00
Matthias BUSSONNIER
4d9611a9ff
add TODO
2014-07-28 21:43:56 +02:00
Matthias BUSSONNIER
3b5b32f27b
move login widget style to css
2014-07-28 21:43:56 +02:00
Matthias BUSSONNIER
c468caeb19
add extra var for local variable
2014-07-28 21:43:56 +02:00
Matthias BUSSONNIER
233ef2180d
remove unused variable
2014-07-28 21:43:56 +02:00
Matthias BUSSONNIER
4f7f90dca8
comment typo
2014-07-28 21:43:56 +02:00
Matthias BUSSONNIER
660ddf76af
move tolbar styling to css
2014-07-28 21:43:56 +02:00
Matthias BUSSONNIER
72c0e4446f
command_mode_icon typos (dash instead of underscore)
2014-07-28 21:43:56 +02:00
Matthias BUSSONNIER
1f0ef5dc97
more cleanup
2014-07-28 21:43:55 +02:00
Matthias BUSSONNIER
d732098ee1
remove uselessrandom id, and move styling to css
2014-07-28 21:43:55 +02:00
Matthias BUSSONNIER
5b9f518513
move styling from js to css
2014-07-28 21:43:55 +02:00
Matthias BUSSONNIER
01a0d038d4
move styling from js to css
2014-07-28 21:43:55 +02:00
Matthias BUSSONNIER
c261f45ea3
movestyling from js to css + deprecation warnign
2014-07-28 21:43:55 +02:00
Matthias BUSSONNIER
f3cbb8a0c7
remove js styling, already done in css in logoutmain
2014-07-28 21:43:54 +02:00
Matthias BUSSONNIER
a97f4f69cc
move styling from js to css
2014-07-28 21:43:54 +02:00