Commit graph

47 commits

Author SHA1 Message Date
Takafumi Arakaki
e259b4f3c7 Added a command to kill kernel 2012-05-13 07:40:15 +02:00
Takafumi Arakaki
7726a1ec1c Kernel interruption works now 2012-05-13 07:32:43 +02:00
Takafumi Arakaki
4bb9cfd47a Raise error in ein:notebook-insert-cell-below if suspicious 2012-05-13 07:14:33 +02:00
Takafumi Arakaki
36688ca8c2 Fix: cell cannot be added when there is no cell 2012-05-13 07:11:04 +02:00
Takafumi Arakaki
533c53b02b Document ein:$notebook 2012-05-13 05:53:13 +02:00
Takafumi Arakaki
98021e044a Notebook renaming works now 2012-05-13 05:12:05 +02:00
Takafumi Arakaki
4de38417b7 Add ein:notebook-test-notebook-name 2012-05-13 04:47:41 +02:00
Takafumi Arakaki
1d03c595b1 Add FIXME: Remove ein:@notebook macro later 2012-05-13 04:32:23 +02:00
Takafumi Arakaki
417e26e81d Use notebook name for the buffer name 2012-05-13 04:29:27 +02:00
Takafumi Arakaki
386aa997e9 Set metadata in ein:notebook-init 2012-05-13 04:24:30 +02:00
Takafumi Arakaki
b020c0bda6 Remove ein:notebook-setup
I want initialize notebook before calling ein:notebook-get-buffer.
2012-05-13 04:19:22 +02:00
Takafumi Arakaki
e8a7ce7a98 Add ein:notebook-get-buffer 2012-05-13 04:13:29 +02:00
Takafumi Arakaki
9e1879e5ac Document ein:notebook-setup/init 2012-05-13 04:11:04 +02:00
Takafumi Arakaki
478bb90755 Call ein:log-setup in ein:notebook-setup 2012-05-13 04:09:17 +02:00
Takafumi Arakaki
632e305aaf Refactor ein:notebook-open 2012-05-13 04:07:49 +02:00
Takafumi Arakaki
c88da06bec Big refactoring over URL to allow multiple servers
URL was fixed in the previous version.  As Emacs does not know URL of
IPython web server like JS does implicitly by page location, I need to
pass URL around in notebook list/notebook/kernel.  I add `url-or-port'
slot to each structs so it is easy to get URL from the struct.
2012-05-13 03:49:40 +02:00
Takafumi Arakaki
23168d75f6 Refactor ein:notebook-url 2012-05-12 23:13:28 +02:00
Takafumi Arakaki
e0cfc90662 Add ein:deflocal to eliminate boilerplate 2012-05-12 22:55:44 +02:00
Takafumi Arakaki
dffdb236c1 Add ein:notebook-toggle-cell-type command 2012-05-11 23:52:32 +02:00
Takafumi Arakaki
62b1ecfb62 Add ein:notebook-goto-next/prev-cell command 2012-05-11 16:39:06 +02:00
Takafumi Arakaki
c42a9e8fa0 Remove ein:notebook-in-buffer macro
It was used for command.  But command is executed via keybind, which
is defined only in notebook buffer.  So checking if in a notebook
buffer does not makes sense much.
2012-05-11 16:22:30 +02:00
Takafumi Arakaki
ad48bb9ed2 Refactor ein:notebook-insert-cell-below
ein:notebook-get-current-cell is removed from ein:notebook-insert-cell-below.
Try to avoid implicit use of cursor information in non-command function.
2012-05-11 14:47:38 +02:00
Takafumi Arakaki
a80e7d09d5 Add ein:notebook-with-cell macro
... to simplify command functions
2012-05-11 14:40:54 +02:00
Takafumi Arakaki
2b84d5f409 Remove already fixed FIXME comments 2012-05-11 14:21:04 +02:00
Takafumi Arakaki
7f385b77cb Add ein:notebook-complete-cell-command
The call back handler is not implemented so it won't work yet.
2012-05-11 09:59:02 +02:00
Takafumi Arakaki
93d8688928 Implement ein-pager.el: help? works now 2012-05-11 05:24:34 +02:00
Takafumi Arakaki
5a978ae577 Add a command to remove cell 2012-05-11 00:48:22 +02:00
Takafumi Arakaki
1bfa3ad35d Markdown cell can be inserted by command now. 2012-05-11 00:23:42 +02:00
Takafumi Arakaki
35e47bbe69 Call set-buffer-modified-p from save callback 2012-05-11 00:18:17 +02:00
Takafumi Arakaki
f32afffb0c Warn when try to execute non-codecell 2012-05-10 22:39:30 +02:00
Takafumi Arakaki
63dfb4ee18 Fix ein:mumamo-find-edge: treat cell-p correctly 2012-05-10 22:39:30 +02:00
Takafumi Arakaki
7fed946777 Add ein:cell-from-ewoc-node 2012-05-10 22:39:30 +02:00
Takafumi Arakaki
c95f505287 Add ein:notebook-get-nearest-cell-ewoc-node 2012-05-10 22:39:29 +02:00
Takafumi Arakaki
1d45ee715a Fix ein:notebook-get-current-cell 2012-05-10 13:05:02 +02:00
Takafumi Arakaki
a9ad26233c Fix: calling undefined function ein:cell-new 2012-05-10 12:46:59 +02:00
Takafumi Arakaki
f0442c2a0c Fix notebook. Compile goes fine now. 2012-05-10 12:46:46 +02:00
Takafumi Arakaki
cc03ccaa00 Save works now; fix ein:notebook-to-json/save-notebook
* output of `ein:notebook-to-json' was wrong. `worksheets' did not
  contain cells.
* `metadata' is plist where I assumed alist.
2012-05-08 08:50:09 +02:00
Takafumi Arakaki
2c3ba08aa7 Use alist in to-json functions
json.el prefers alist over plist (see json-encode-list).
Previous version outputs malformed json.

But still, server says "Invalid JSON data".
2012-05-08 08:26:56 +02:00
Takafumi Arakaki
db32fa4f21 Add ein:notebook-save-notebook (not functional yet) 2012-05-08 08:24:20 +02:00
Takafumi Arakaki
34dedb9270 Removed unused function ein:notebook-get-worksheet 2012-05-08 07:15:44 +02:00
Takafumi Arakaki
0c212e5485 Refactor ein:notebook-open 2012-05-08 07:05:11 +02:00
Takafumi Arakaki
005ea17204 Log start message in ein:log-setup 2012-05-08 06:52:28 +02:00
Takafumi Arakaki
218fee0479 Comment on ein:$notebook/cell 2012-05-08 06:47:03 +02:00
Takafumi Arakaki
a4ff94d761 Rename ein:notebook-create to ein:notebook-setup 2012-05-08 06:46:34 +02:00
Takafumi Arakaki
df3fa66698 Add ein:notebook-from-json and use it in ein:notebook-render 2012-05-08 06:42:10 +02:00
Takafumi Arakaki
85c27f1727 Add ein:notebook-to-json (not yet tested) 2012-05-08 06:15:23 +02:00
Takafumi Arakaki
a074a168c9 First commit of bare bone version 2012-05-07 14:41:15 +02:00