Commit Graph

1927 Commits

Author SHA1 Message Date
MinRK
336f47c126 update message spec adapter per review
- docs and comments
- adapt complete_reply with `end=null`, `start=-len(matched_text)`
- remove some incorrect `status` fields
- add `handle_reply_status_error` for handling `status=error` replies (no-op, currently)
2014-05-09 12:04:08 -07:00
MinRK
b06f382e9b interrogate kernel_info to get protocol version for adaptation 2014-05-09 12:04:08 -07:00
Thomas Kluyver
2cc7b1ca30 Merge pull request #4536 from minrk/msgspec5
Updating the message spec (finish IPEP 13, 24)
2014-05-09 12:00:58 -07:00
MinRK
b7c1f1d8f6 allow notebook tour instantiation to fail
can fail with SecurityError,
depending on browser privacy settings

disable UI Tour menu entry if tour instantiation fails

ref: sorich87/bootstrap-tour#262
2014-05-08 15:14:23 -07:00
MinRK
42ae83da16 add shim for double-serialized JSON
msgspec gives unserialized JSON,
nbformat v3 wants JSON strings.
2014-05-08 14:05:03 -07:00
MinRK
58aca05486 add version key to js message headers 2014-05-08 14:05:03 -07:00
MinRK
97fdfea52a updates per review
- two-part protocol version (5.0)
- default value for cursor_pos is end of code
- docs, comment, and docstring touchups
2014-05-08 14:05:02 -07:00
Jessica B. Hamrick
287e9a5cbd Add tests for default/custom description 2014-05-08 11:18:55 -07:00
Jessica B. Hamrick
31812159af Only set widget description in interact if it does not already exist 2014-05-08 11:12:02 -07:00
MinRK
fb72c3d863 remove an inappropriate !
the logic was backwards.
2014-05-07 10:32:26 -07:00
MinRK
378223e791 fix safe_append_output test 2014-05-06 22:41:24 -07:00
MinRK
de0b7f140c move pyout/execute_result and pyerr/error transforms to to/fromJSON
like the mime-type maps
2014-05-06 22:41:24 -07:00
MinRK
33d2176bc5 complete_reply has cursor_start and cursor_end, not matched_text 2014-05-06 22:41:24 -07:00
MinRK
b78c5b1554 s/object_info_request/inspect_request 2014-05-06 22:41:23 -07:00
MinRK
4f6565bd2a pager payload is a mime-bundle 2014-05-06 22:41:23 -07:00
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
2014-05-06 22:41:19 -07:00
MinRK
98c408cbd1 support password in input_request 2014-05-06 22:39:44 -07:00
MinRK
5e8ce3b7e1 remove user_variables
leave only user_expressions
2014-05-06 22:39:43 -07:00
MinRK
5fb9837f5a pyerr -> error 2014-05-06 22:39:41 -07:00
MinRK
38c76aa913 pyout -> execute_result
nbformat and nbconvert are not affected
2014-05-06 22:39:01 -07:00
Min RK
6b7d3fddec Merge pull request #5668 from minrk/async-output
allow async output on the most recent request
2014-05-06 10:42:02 -07:00
Min RK
d87045744c Merge pull request #5768 from ivanov/cm-uuddlrlrba
fix cursor keys in long lines wrapped in markdown
2014-05-05 17:02:14 -07:00
Thomas Kluyver
c4e0ef142b Merge pull request #5759 from minrk/travis-3.4
test with Python 3.4 on Travis
2014-05-05 10:20:56 -07:00
Thomas Kluyver
a44de827e7 Merge pull request #5775 from minrk/race-cleanup
wait until dead before cleaning up the temp dir
2014-05-05 10:16:27 -07:00
MinRK
f530562929 wait until dead *before* cleaning up the temp dir 2014-05-02 11:00:39 -07:00
Thomas Kluyver
b357c55fef Merge pull request #5715 from minrk/log-all-ajax-failures
log all failed ajax API requests
2014-05-01 17:21:29 -07:00
Min RK
22133997bd Merge pull request #5769 from spenczar/no_urlescaping_title_tag
Don't urlescape the text that goes into a title tag
2014-05-01 16:58:36 -07:00
MinRK
191cd44c4d cleanup socket cleanup
- set linger on sockets (avoid hang on exit)
- actually close sockets, not just zmq streams (blame pyzmq, aka me)

seems to be necessary for js/notebook/shutdown test to avoid hanging on Python 3.4.
2014-05-01 16:06:59 -07:00
Spencer Nelson
925a58c0b4 Remove unused imports 2014-05-01 15:42:46 -07:00
Spencer Nelson
e34b7aa9a7 Don't urlescape the text that goes into a title tag 2014-05-01 15:12:32 -07:00
Paul Ivanov
fe7193e5af fix cursor keys in long lines wrapped in markdown 2014-05-01 10:31:34 -07:00
MinRK
934e731237 add utils.path.ensure_dir_exists
Ensures that a directory exists,
and protects against a common race condition when multiple
processes try to create the same directory.
2014-04-29 10:18:36 -07:00
MinRK
da525f1541 fix delete_checkpoint errback name 2014-04-28 11:30:50 -07:00
Thomas Kluyver
b55903b2eb Merge pull request #5700 from minrk/configurable-managers
make the various manager classes in the notebook app configurable
2014-04-25 12:48:31 -07:00
Thomas Kluyver
79c72686e8 Merge pull request #5708 from minrk/checkpoints-path
create checkpoints dir in notebook subdirectories
2014-04-25 12:38:23 -07:00
Thomas Kluyver
c4e2468c48 Merge pull request #5714 from minrk/warn-api-errors
log error message when API requests fail
2014-04-25 12:18:40 -07:00
MinRK
df335decff create checkpoints dir in notebook subdirectories 2014-04-23 13:30:23 -07:00
MinRK
0a143e716e dialog on New Notebook failure 2014-04-23 13:22:36 -07:00
MinRK
82964a09c2 log all failed ajax API requests 2014-04-23 13:17:50 -07:00
MinRK
f824aee955 log error message when API requests fail 2014-04-23 12:41:27 -07:00
MinRK
bf871b020d test notebook checkpoints in subdirectories 2014-04-23 11:43:51 -07:00
Raffaele De Feo
4adb8b5ffc Adjusted "rawcell" toolbar preset to make us of the new "register_callback"
optional parameter.
2014-04-23 15:57:17 +02:00
Min RK
748b2c64d5 Merge pull request #5627 from AlbertHilb/ConditionalCallbacks
Some improvements to cell toolbars
2014-04-22 16:36:58 -07:00
Min RK
673c644a4f Merge pull request #5534 from minrk/pre-css
cleanup some `pre` css inheritance
2014-04-22 15:19:20 -07:00
Min RK
dec6fb7260 Merge pull request #5469 from dalejung/nbm_kernel_path
API: Allow NotebookManagers to specify kernel startup dir.

closes #5468
2014-04-22 15:02:42 -07:00
MinRK
f75d9be34f make the various manager classes in the notebook app configurable
like NotebookManager already was
2014-04-22 14:50:51 -07:00
Thomas Kluyver
0dc02c176a Merge pull request #5586 from minrk/pdf-exporter
add PDFExporter
2014-04-22 13:15:22 -07:00
Min RK
86cd81014f Merge pull request #5648 from andrewjesaitis/ticket4756
Adds markdown formatting to output cells
2014-04-22 11:37:47 -07:00
Jonathan Frederic
035562d95b Merge pull request #5602 from jasongrout/kernel-js-post
Change $.post to this.post in the kernel js file
2014-04-21 19:46:23 -07:00
Min RK
048a36e4fd Merge pull request #5523 from jdfreder/i5521
Make SVGs resizable in the NB
2014-04-21 15:57:40 -07:00