Commit Graph

1504 Commits

Author SHA1 Message Date
Sylvain Corlay
222dc5fb3e Destroy backbone model on comm:close 2014-09-14 11:46:12 -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
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
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
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
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
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
Matthias BUSSONNIER
7752320295 get rid of some jq-ui- style 2014-09-02 17:47:59 -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
Paul Ivanov
78918ba827 Merge pull request #6359 from minrk/build-css
build css
2014-08-28 10:35:02 -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
Jonathan Frederic
cf0ca9d4a5 Merge pull request #6050 from chronitis/interact-range-widgets
Range widgets
2014-08-25 21:40:21 -07: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
Gordon Ball
08895738f2 Merge master 2014-08-20 16:44:58 +02: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
Jonathan Frederic
2790684a17 Fixed typo 2014-08-15 10:41:43 -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
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
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