Min RK
0aaafce4af
Merge pull request #4195 from minrk/widget-msg
...
IPEP 21: widget messages
12 years ago
Paul Ivanov
357b78171a
fix: JS kernel state should reflect killed state
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
4a3978ec28
don't expose comm_id arg via new_comm
12 years ago
MinRK
b666345633
allow callbacks on status messages
12 years ago
MinRK
34efd17408
catch errors in comm callbacks
12 years ago
MinRK
938dc589dd
Add CommManager.new_comm
...
Javascript-side version for creating and connecting Comms in one call
Without a `get_ipython()`-like global handle,
Comm constructor can't do the same magic as the IPython one.
12 years ago
MinRK
0a89edc641
log exceptions in Comm handlers
12 years ago
MinRK
8bcf95404d
add unregister_target to CommManagers
12 years ago
MinRK
90f67d3bbe
add CodeCell.get_callbacks
...
for reusing default execute callbacks
12 years ago
MinRK
9e198d2bd6
attach comm_manager to kernel
12 years ago
MinRK
5c83cd3e52
move comm.js to kernel service
12 years ago
MinRK
04adce96af
add message metadata to comm and kernel.send_shell_message
12 years ago
MinRK
99680e21bd
move comm.js to base
12 years ago
MinRK
4fdc4bb3fc
get clear_output callback properly
12 years ago
MinRK
76994d2ff8
update callback structure in js commands
12 years ago
MinRK
aa388570d3
jshint on codecell
12 years ago
MinRK
f7e6435256
only pass shell.reply callback to oinfo / complete
...
These should not have side effects, so no need to expose full callback structure.
Also, object_info method shouldn't have `_request` in its name.
12 years ago
MinRK
d99e25f245
refactor js callbacks
...
all callbacks get the whole message
12 years ago
MinRK
9206d1e87f
add utils.always_new
...
wrapper allows passing constructors as callbacks, where `new` is required.
12 years ago
MinRK
111fccc8ab
open is not an event
...
target callback receives comm and open message, not just comm.
12 years ago
MinRK
aa0387a647
s/target/target_name
12 years ago
MinRK
f833b1ca03
hook up output for comm messages
12 years ago
MinRK
3d3c3fd504
COMM: mirror Python callback API in Javascript
12 years ago
MinRK
15819e8535
pass whole message to Comm handlers
12 years ago
MinRK
3665cc241f
rename widget to comm
12 years ago
MinRK
14fcdab73b
make js / Python widgets symmetrical
...
don't enforce creation on Kernel side
also removed weak refs - premature optimization,
we can think about this later.
12 years ago
MinRK
230a2261e8
fix js/Python WidgetManager symmetry
...
remove some log statements
12 years ago
MinRK
6643cffa23
add javascript-side widgets
12 years ago
MinRK
8199909e62
Improvements to kernel.js
...
- dispatch iopub handlers by msg_type
- add Kernel.send_shell_message public API
- use strict (and related fixes)
12 years ago
Min RK
bc0dc279f1
Merge pull request #4303 from ipython/multidir
...
Add multidirectory support for the Notebook.
Major change to URL schemes in the notebook server,
documented in [IPEP 16](https://github.com/ipython/ipython/wiki/IPEP-16%3A-Notebook-multi-directory-dashboard-and-URL-mapping ).
12 years ago
Paul Ivanov
8b26933af5
Merge pull request #4378 from minrk/split-below
...
split adds new cell above, rather than below
12 years ago
Paul Ivanov
a2d731ff39
fix 'close and halt' in notebook File menu
12 years ago
MinRK
50665831bd
update copy API in js
12 years ago
MinRK
aea1bbde6a
s/session_id/id
12 years ago
MinRK
0558ec4ce0
Cells shouldn't know about Sessions
12 years ago
MinRK
d1a36fe4c0
use 'id' for checkpoint ID key
...
rather than redundant checkpoint.checkpoint_id
12 years ago
MinRK
5a60141bed
use splitext in notebook_list
...
fixes case where notebooks with '.' in name were misrendered
12 years ago
MinRK
11013e648d
add utils.splitext to js
...
mimic Python os.path.splitext
12 years ago
MinRK
5ca1ad666d
add missing cell.session in tooltip.js
12 years ago
Brian E. Granger
9c42ca8a72
Fully removing .py file upload.
...
In the future all uploads should just use the contents web service
and we should support any type of file.
12 years ago
Brian E. Granger
51fc769edd
Handle notebook downloads through the /files URL.
12 years ago
MinRK
4a12890d65
disable download-as-pt
...
since it doesn't work. Adds a note about nbconvert needed to bring it back.
12 years ago
MinRK
fc4fb92580
review pass on multidir js
12 years ago
MinRK
e16a5807c7
fixup bad rebase
12 years ago
MinRK
5593526108
don't let empty strings introduce extra slashes in url_path_join
12 years ago
MinRK
a7f297f8f3
save before download-as
...
uses `async : false`
closes #852
download-as-py still unavailable.
12 years ago
MinRK
8b94ee2b47
use `async : false` to avoid pop-up blocker on New / Copy notebook
12 years ago