Jason Grout
686e73dfdf
More simplifications due to promises
11 years ago
Jason Grout
4412c12929
Simplify code by using Promises in a better way; try_load -> load
11 years ago
Jonathan Frederic
4beda5d0fb
Initial stab at adding promises to the widget framework.
11 years ago
Thomas Kluyver
8c962df79c
Load promises polyfill from a script tag
...
So all JS code can assume promises work, without needing to require it.
11 years ago
Thomas Kluyver
0295f5a487
Semicolons
11 years ago
Thomas Kluyver
9b2dac3fc1
Infrastructure for AJAX requests returning ES6 promises
11 years ago
Min RK
8407ba3a08
update frontend with path/name changes
...
- remove name from models
- path is full path (contains name)
11 years ago
Kester Tong
89df330129
Modifies Contents API to return Error objects
...
Modfies the Contents class to return JavaScript Error objects instead of passing on the return values from $.ajax(). This has two advantages. First, it allows the content manager to parse errors and give more informative messages than the ajax response. Second, it makes the Contents interface more general, since other kinds of backends might generate client-side errors.
11 years ago
Thomas Kluyver
c39939869f
Merge pull request #6653 from mattpap/fix_ansispan
...
Fix IPython.utils.ansispan() to ignore stray [0m
11 years ago
MinRK
6cef7fcb86
use utf8.js
...
move message serialization to kernel.serialize module
11 years ago
MinRK
3a1c845f96
support buffers in comm messages
...
- add buffers arg to comm Python api
- support binary websocket messages when buffers are present
- reimplement utf8 in javascript, because javascript is the best
11 years ago
Matthias Bussonnier
3de3ef9add
add comment about codemirror.modeURL
11 years ago
MinRK
8e863d951c
use require to load CodeMirror modes
...
CM's loadmode addon only works if you *don't* load CodeMirror itself with require.
11 years ago
Matthias BUSSONNIER
5b355936df
Update to codemirror 4
...
Update to codemirror 4.6 and update most notebook to work wiht it
this include keyevent that where triggerd twice and the re-writing of
ipython-gfm anf ipython mode to work with require.
11 years ago
Jessica B. Hamrick
d606d53b4e
More informative error messages
11 years ago
Mateusz Paprocki
904216d546
Fix ansispan() to ignore stray [0m
11 years ago
MinRK
78fdc1ebb4
move mergeopt to utils
...
from Cell
12 years ago
MinRK
6d542013a4
add utils.ajax_error_msg for extracting the JSON error message.
12 years ago
Jonathan Frederic
ee76005bc2
More review changes
12 years ago
Jonathan Frederic
188072d190
@carreau review changes
12 years ago
Jonathan Frederic
0e9e1dd5a3
MWE,
...
Fixed LOTS of bugs
12 years ago
Jonathan Frederic
152e23dc76
Progress...
12 years ago
Jonathan Frederic
855815d207
Make page.html require.js friendly.
12 years ago
MinRK
33d2176bc5
complete_reply has cursor_start and cursor_end, not matched_text
12 years ago
MinRK
a74c79ceab
update completion_ and objection_info_request
...
both requests take:
- code (up to full cell)
- cursor_pos (cursor offset in unicode characters)
and object_info_replies return a mime-bundle, instead of structured data
12 years ago
MinRK
82964a09c2
log all failed ajax API requests
12 years ago
MinRK
e7f3c05d28
remove unused get_attr_names
12 years ago
Brian E. Granger
fa3f998295
Adding security.js with 1st attempt at is_safe.
12 years ago
Brian E. Granger
af7dd15181
Removing old keyboard handling from IPython.utils.
12 years ago
Jonathan Frederic
a7fb5e1e55
Merge pull request #5114 from minrk/empty-button
...
use non-breaking space for button with no description
12 years ago
Thomas Kluyver
d6986cf4ec
Merge pull request #4778 from minrk/install-nbextensions
...
add APIs for installing notebook extensions
12 years ago
MinRK
9c452998ea
add utils.escape_html
12 years ago
MinRK
8264362179
document utils.parse_url
12 years ago
MinRK
24e59106c0
add utils.parse_url
...
strip repeated '//' in url_path_join
12 years ago
MinRK
a93040e810
s/get_data/get_body_data/
12 years ago
MinRK
beaa75b416
add utils.get_data
...
for extracting *decoded* items from $('body').data
12 years ago
MinRK
f3f1695b06
add IPython.load_extensions in js
12 years ago
Brian E. Granger
5137961bf2
Protect against navigator undefined in platform.
12 years ago
Brian E. Granger
0af185787a
Added platform dep. logic.
12 years ago
MinRK
c7a3676804
allow utils.js to be loaded in node
...
where navigator is undefined
12 years ago
Brian E. Granger
06aa0d540d
Using a more specific approach for managing CM focus.
...
I used to try and enter command mode when a cell looses focus. The
problem with that is that focusing an output area would remain in
edit mode.
Now, I bind this logic to the code mirror blur event, so that
focusing the output area enters command mode.
12 years ago
MinRK
1869e1a1a3
add utils.url_join_encode
...
like url_path_join, but escapes url components
12 years ago
Min RK
0aaafce4af
Merge pull request #4195 from minrk/widget-msg
...
IPEP 21: widget messages
12 years ago
Paul Ivanov
19a20a3c70
add Ctrl-M keyboard shortcut
12 years ago
Paul Ivanov
65810a49e4
utility functions + tests for shift- & ctrl-enter
12 years ago
Paul Ivanov
c68eaca621
added a shorthand way to trigger keyboard events
...
as suggested by @ellisonbg in #4285
12 years ago
MinRK
9206d1e87f
add utils.always_new
...
wrapper allows passing constructors as callbacks, where `new` is required.
12 years ago
MinRK
11013e648d
add utils.splitext to js
...
mimic Python os.path.splitext
12 years ago
MinRK
5593526108
don't let empty strings introduce extra slashes in url_path_join
12 years ago
MinRK
40f577b538
add utils.url_path_join
...
javascript equivalent of Python-side function.
12 years ago