Takafumi Arakaki
05a437b1ad
Make ein:pytools-jump-to-source-command more robust
2012-06-03 17:50:13 +02:00
Takafumi Arakaki
853a9ec50e
Add ein:pytools-jump-to-source-command (M-.)
...
As this command requires to invoke multi-line python code, ein.py is
added to store python code needed for EIN. The sys.path is added
automatically when the kernel is started so that any function can be
called as ``__import__("ein").FUNCTION()``. This way, namespace is
not contaminated at all.
2012-06-03 17:30:16 +02:00
Takafumi Arakaki
5766a68c29
Add ein:$kernel-after-execute-hook
...
... and hook ein:kernelinfo-update-ccwd to update default-directory in
very eager manner.
2012-06-03 00:22:16 +02:00
Takafumi Arakaki
3cb3589c79
Make logging more robust
...
Previously logging fails when the log buffer is deleted accidentally.
Now it is automatically created.
2012-06-02 22:26:30 +02:00
Takafumi Arakaki
a7ed044dc4
Merge branch 'kernelinfo' into master
...
Conflicts:
ein-websocket.el
2012-06-02 22:12:50 +02:00
Takafumi Arakaki
6d0893b0b9
Suppress silent flag from shared output cell
...
Some kind of outputs (pyout/inline image) was not shown in the shared
output buffer because the silent flag was on. This is fixed now.
2012-06-02 21:53:59 +02:00
Takafumi Arakaki
be0c3665b9
Fix ein:notebook-toggle-cell-type: set kernel
...
Set kernel slot if the converted cell is a code cell.
2012-06-02 21:47:03 +02:00
Takafumi Arakaki
77d574dc73
Fix test: ein:notebook-toggle-cell-type-simple
2012-06-02 20:59:14 +02:00
Takafumi Arakaki
8e3aeb3ea4
Document ein:connect-mode more
2012-06-02 20:41:41 +02:00
Takafumi Arakaki
351ff8b26b
Add ein:notebook-eval-string
2012-06-02 20:40:22 +02:00
Takafumi Arakaki
adc8ba277d
Add ein:connect-eval-string
2012-06-02 20:25:13 +02:00
Takafumi Arakaki
d922db4b38
Add ein:notebook-change-cell-type command
2012-06-02 18:46:02 +02:00
Takafumi Arakaki
690c752a6e
Adapt ein:notebook-toggle-cell-type to v3 notebook
2012-06-02 18:44:29 +02:00
Takafumi Arakaki
695ee1a433
Change prompt for text cells
2012-06-02 12:21:07 +02:00
Takafumi Arakaki
a96caa5692
Merge branch 'new-ws'
2012-06-02 12:03:21 +02:00
Takafumi Arakaki
f018885fbb
Simplify ein-websocket.el
2012-06-01 23:38:43 +02:00
Takafumi Arakaki
02878d3b36
Remove ein:$websocket-readyState
...
ein:websocket-open-p directly uses websocket-ready-state now.
2012-06-01 22:56:09 +02:00
Takafumi Arakaki
ef1b66c2dc
Simplify ein:websocket-filter
2012-06-01 22:50:45 +02:00
Takafumi Arakaki
8e5f0f6f4f
Quick fix to follow the API change of websocket.el
2012-06-01 22:48:44 +02:00
Takafumi Arakaki
86b8ba6f05
Fix ein:kernelinfo-update-ccwd
2012-06-01 21:27:34 +02:00
Takafumi Arakaki
36c5a188c2
Fix WS "onopen": readyState must be set before CB
2012-06-01 00:40:52 +02:00
Takafumi Arakaki
a030f6ec7a
Add ein:dev-start/stop-debug commands
2012-05-31 23:54:43 +02:00
Takafumi Arakaki
043809cc76
Add after-start-hook to kernel and use it for info
2012-05-31 23:01:12 +02:00
Takafumi Arakaki
0715c33e46
Add ein:kernelinfo-init
2012-05-31 18:12:44 +02:00
Takafumi Arakaki
5926f3fb2a
Add ein:$kernelinfo to track cwd and hostname
2012-05-31 16:22:13 +02:00
Takafumi Arakaki
30011e7de6
Refactor ein:kernel-sync-directory
2012-05-27 05:49:41 +02:00
Takafumi Arakaki
6dde09196a
Don't show uninteresting tooltip
2012-05-27 05:39:33 +02:00
Takafumi Arakaki
03437ff35a
Add functions to sync directory with kernel's CWD
...
Another possible way to implement this is to use user_expressions.
However, replied message is Python's repr. As there is no reliable
way to convert it except using Python itself, I am using stream to
get CWD.
2012-05-27 05:19:17 +02:00
Takafumi Arakaki
fbbff8b644
Remove hard-coded timeout
2012-05-27 02:03:58 +02:00
Takafumi Arakaki
66a8a90ddc
Merge branch 'ein-query'
2012-05-27 01:39:39 +02:00
Takafumi Arakaki
9ba9be9253
Add some keys to smartrep config and remove C-d
2012-05-27 01:26:41 +02:00
Takafumi Arakaki
878c74d3e1
Fix: response-status was not passed to ajax callbacks
2012-05-26 22:55:23 +02:00
Takafumi Arakaki
b37dbaeeeb
Add eintest:delete-untitled0
2012-05-26 22:39:39 +02:00
Takafumi Arakaki
b9e056d8f7
Fix eintest:get-untitled0-or-create
2012-05-26 22:37:26 +02:00
Takafumi Arakaki
27d924b020
Fix test-ein-kernel.el
2012-05-26 21:25:20 +02:00
Takafumi Arakaki
58fbfc3f0e
Use ein:query-ajax in ein-kernel.el
2012-05-26 21:24:53 +02:00
Takafumi Arakaki
fffeeb2d3b
Clean up eintest:notebook-from-json
2012-05-26 20:51:18 +02:00
Takafumi Arakaki
053962a5bf
Fix eintest:notebook-from-json
2012-05-26 20:49:31 +02:00
Takafumi Arakaki
95434c845d
Use ein:query-ajax in ein:notebook-request-open
2012-05-26 20:41:47 +02:00
Takafumi Arakaki
f6bcb438e8
Rename s/data-type/parser/g
2012-05-26 20:23:22 +02:00
Takafumi Arakaki
5a65aba368
Add DATA-TYPE argument to ein:query-ajax
...
This solves the problem due to the url-retrieve gotcha.
Main changes:
* Separation of the function to parse buffer and callback.
This is good because parsed data can be used from multiple
callbacks (SUCCESS and STATUS-CODE).
* As a result, current buffer for callbacks is not process
buffer anymore. Callbacks should not assume any particular
current buffer.
* RESPONSE-STATUS is added to the arguments for callbacks
to pass around the value of url-http-response-status.
Previous attempts:
* cb5f53c183
:
Simpler and better fix than the previous one
* fff269fc39
:
ein:notebooklist-delete-notebook works again
2012-05-26 20:12:31 +02:00
Takafumi Arakaki
7a50ae0a3a
Add ein:notebooklist-new-notebook-callback
2012-05-26 19:53:23 +02:00
Takafumi Arakaki
cb5f53c183
Simpler and better fix than the previous one
...
Previous fix ignores callbacks even if it is specified if the buffer
is killed. This is simply wrong. As the user of :STATUS-CODE
callback does not touch current buffer, I change the spec.
2012-05-26 19:25:00 +02:00
Takafumi Arakaki
fff269fc39
ein:notebooklist-delete-notebook works again
...
The bug was in ein:query-ajax-callback. When url-retrieve called in
its callback (which is the case of ein:notebooklist-delete-notebook),
same process buffer is reused. Therefore, old code killed another
buffer (namely notebook list buffer) by accident and the variable
url-http-response-status was void because it is outside of the process
buffer (I am not sure about this part). Current workaround is to
check if the buffer is live before executing buffer, using new macro
ein:with-live-buffer.
2012-05-26 19:08:15 +02:00
Takafumi Arakaki
9061e1c515
Use ein:query-ajax in ein:notebooklist-delete-notebook
2012-05-26 19:01:39 +02:00
Takafumi Arakaki
388a59efa2
Fix ein:notebooklist-new-notebook
...
Do not kill process buffer when using ein:query-ajax
2012-05-26 19:00:34 +02:00
Takafumi Arakaki
783e430105
Use ein:query-ajax in ein:notebooklist-new-notebook
2012-05-26 17:30:58 +02:00
Takafumi Arakaki
55eb908993
Remove unused url-http-method in ajax callback
2012-05-26 17:22:08 +02:00
Takafumi Arakaki
fb67781402
Fix ein:query-ajax-callback
...
Callback must be wrapped one by one. Fix "url-http-response-status is
void" error when calling ein:notebooklist-open.
2012-05-26 17:20:20 +02:00
Takafumi Arakaki
56d92f9121
Revert "Suppress error: url-http-response-status is void"
...
This reverts commit 48a8f3835e
.
Conflicts:
ein-query.el
2012-05-26 17:18:34 +02:00