dickmao
dd01c4578c
reconnect kernel if necessary under org-ctrl-c-ctrl-c
...
when `C-c C-c`, reconnect to kernel if it disconnected
2019-02-26 17:58:42 -05:00
dickmao
4f468ee5f7
Singleton
...
We can't be certain when the shared output cell can be safely turned
over to the next org block. I have witnessed `display_data` updates being
received *after* both the `execute_result` and `execute_reply`
messages. As a HACK, we `run-at-time 2` seconds the turning over of
the cell to accommodate any eleventh hour straggler display_data's.
2019-02-21 23:14:11 -05:00
dickmao
0f7f8b14cd
Test C-c '
2019-02-20 11:50:46 -05:00
dickmao
ed6482096e
Add ob-ein tests
...
Also, speed up login and other cleanups
2019-02-19 10:06:15 -05:00
Sam Steingold
25f2f49943
use cl-defmethod instead of defmethod
...
defmethod macro is obsolete.
it expands to a defun eieio-defmethod which cannot use cl-call-next-method
2018-11-08 16:24:28 -05:00
Sam Steingold
1c6270c425
update the code base to avoid compilation warnings about obsolete functions
...
call-next-method -> cl-call-next-method
set-slot-value -> (setf slot-value)
*-child-p -> cl-typep
oref <keyword> -> slot-value <symbol>
object-p -> eieio-object-p
Closes https://github.com/millejoh/emacs-ipython-notebook/issues/394
2018-11-08 09:36:35 -05:00
dickmao
84fa177a1e
When I C-c C-c also C-c C-r if necessary
...
If user wants to execute cell, and the connection is down,
automatically reconnect, then execute the cell.
2018-11-06 18:36:46 -05:00
dickmao
0490031ec8
Sane File Navigation
...
As emacs users we prefer and have the luxury of fuzzy file navigation
via ido and projectile. From a notebook or notebooklist buffer, the commands
`C-c C-f` ein:file-open
`C-c C-o` ein:notebook-open
offer an ido alternative to point and click navigation.
To populate the ido lists, retrieving the content hierarchy is on by
default. Two custom variables determine how wide and deep the content query
probes (currently at 2 levels deep and 6 directories wide). Set both
to zero to turn off.
tkf half finished code to quickly go from local file buffers to notebook
mode via `C-c C-z` or `C-c C-o`. This is now possible. EIN will
start the server from a suitable parent directory of the visited file.
Enable ido completion for `notebooklist-login`.
Remove the albatross `ein-loaddefs.el` in favor of more standard
`ein-autoloads.el` that is not git tracked.
Convenience `make install` from git source (local alternative to
melpa).
2018-10-26 18:40:19 -04:00
John Miller
bea8b7b580
Compiler warning cleanup.
...
Also try to resolve a bit of the dependency heck that is ein.
2018-05-31 12:44:16 -05:00
John Miller
73747d86d9
ein-shared-output: Queue up requests ala deferred:$
...
Try to gracefully handle multiple calls to `ein:shared-output-eval-string' by
wrapping calls to deferred:$. The deferred chain will not call
`ein:cell-execute' if the cell is already running.
Also did a bit of refactoring in ob-ein.
2018-03-10 07:53:49 -06:00
John Miller
c5421b090f
More eieio warning cleanup.
2017-11-04 11:27:06 -05:00
John Miller
5f61a7fd09
ein-shared-output: Warning cleanup.
2017-10-24 12:42:41 -05:00
John Miller
71d8994ebb
Undoing earlier bone-headedness
...
Finally getting Sam's PR right (sorry about that, Sam). Getting the
mocker subtree into the right place because apparently I cannot type.
2016-09-23 10:37:48 -05:00
John Miller
ed70a26700
Set local keymap for ein's derived modes.
2016-09-19 09:02:35 -05:00
Sam Steingold
99de3360c3
derived modes inherit from special-mode or view-mode as appropriate
...
this means that the derived modes get all the standard keybinding in the standard way.
2016-09-13 09:32:31 -04:00
John Miller
a9736311c8
Fix what was broken with shared output buffers.
...
Regression from previous commits adding slide features.
2016-07-25 08:21:50 -05:00
Takafumi Arakaki
76591e007b
Use region as default code for ein:shared-output-eval-string
2013-03-10 08:11:30 +01:00
Takafumi Arakaki
9a637921f1
Improve ein:shared-output-eval-string
2013-03-08 14:10:37 +01:00
Takafumi Arakaki
5a0605f586
Pass keyword option to ein:kernel-execute
2012-11-03 22:11:19 +01:00
Takafumi Arakaki
6f1a11be30
Add autoload cookies
2012-09-01 20:51:55 +02:00
Takafumi Arakaki
1f7e6ec857
s/\(maybe_reset_undo\).Notebook/\1.Worksheet/g
2012-08-28 16:42:07 +02:00
Takafumi Arakaki
4a1b812e21
Define "public" method ein:kernel-url-or-port
2012-08-28 14:55:22 +02:00
Takafumi Arakaki
d461afeccb
set_dirty.Notebook -> set_dirty.Worksheet
2012-08-27 23:21:47 +02:00
Takafumi Arakaki
acff775e4c
Remove ein:notebook-pp
2012-08-26 13:25:47 +02:00
Takafumi Arakaki
47cfc2238d
Fix generic getters in ein-shared-output.el
...
Check if the current buffer is the shared output buffer before
retrieving any object.
2012-08-20 14:56:42 +02:00
Takafumi Arakaki
62ab5c5ba9
Use ignore function in ein:shared-output-bind-events
2012-08-19 12:15:31 +02:00
Takafumi Arakaki
8acb9409b1
Remove :buffer slot from ein:events class
2012-08-19 12:10:36 +02:00
Takafumi Arakaki
bf4b4b8fdc
Rename class: %s/$shared-output/shared-output/g
2012-08-19 00:26:09 +02:00
Takafumi Arakaki
f754a06ed6
Rename: ein:@shared-output -> ein:%shared-output%
...
%s/\_<ein:@\(shared-output\)\_>/ein:%\1%/g
2012-08-19 00:24:10 +02:00
Takafumi Arakaki
714f07e759
Add ein:ewoc-create in ein-utils
2012-08-16 17:03:53 +02:00
Takafumi Arakaki
f4f116b26f
Replace ein:pytools-eval-string-internal
...
with ein:shared-output-eval-string
2012-08-16 01:59:23 +02:00
Takafumi Arakaki
53fbf9b554
Add ein:shared-output-eval-string
...
This function should be usable anywhere.
2012-08-15 23:04:20 +02:00
Takafumi Arakaki
1193f12b8f
Move notebook-show-in-shared-output to shared-output
2012-08-15 21:41:05 +02:00
Takafumi Arakaki
06b1c74a5a
Add tests ein:get-*--nil and fix a bug
2012-08-14 22:14:02 +02:00
Takafumi Arakaki
3f8f995910
Provide ein:tb-show in connect/shared-output
2012-08-14 21:11:18 +02:00
Takafumi Arakaki
2faeb54475
Add ein:get-traceback-data generic getter
2012-08-14 21:05:12 +02:00
Takafumi Arakaki
4d4e22912b
Add ein:get-cell-at-point generic getter
2012-08-14 21:05:11 +02:00
Takafumi Arakaki
f510e8d50f
Implement "generic getter" mechanism
...
See the docstring of ein:generic-getter
2012-08-14 21:05:03 +02:00
Takafumi Arakaki
c798f7d143
Adapt to new kernel-execute API
...
This is required to avoid wrong-number-of-arguments error,
unlike javascript.
2012-08-08 21:30:14 +02:00
Takafumi Arakaki
1d6aa0765a
Add ein:cell-max-num-outputs config variable
2012-07-17 19:01:22 +02:00
Takafumi Arakaki
d0874be99b
Add a command to show a cell in shared-output buffer
2012-07-17 18:29:00 +02:00
Takafumi Arakaki
d1031fd61e
mv *ein*.el ein.py lisp/
...
fixes #6
2012-07-02 16:47:20 +02:00