Commit graph

1420 commits

Author SHA1 Message Date
John Miller
609abd9a5e ein-cell-edit: Restore window configuration after exiting edit buffer.
Fixes #547.
2019-06-01 09:35:50 -05:00
John Miller
fb85743ce6
Merge pull request #548 from fedeinthemix/wip-fix-completion
ein:kernel-complete: use ':code' instead of ':line' for api-version 4.
2019-05-31 20:18:27 -05:00
John Miller
b0c46383cc
Merge pull request #545 from fedeinthemix/normalize-kernel-names
Normalize the kernelspec language string.
2019-05-31 18:09:47 -05:00
dickmao
dcea37d02e Forestall Polymode "Contamination"
`advice.el` suggests the `ad-default-compilation-action=maybe` admits
inadvertent byte-compilation of advised syntax-ppss in non-EIN
packages reported in #537.

Prevent this by setting `ad-default-compilation-action=never`
when ein:polymode is activated.
2019-05-29 18:56:57 -04:00
Federico Beffa
1cab86995a ein:kernel-complete: use ':code' instead of ':line' for api-version 4. 2019-05-29 18:34:09 +02:00
Federico Beffa
9b7b88c5d4 Normalize kernel language name: Don't change case. 2019-05-29 17:02:16 +02:00
Federico Beffa
f0c9812c5a Normalize the kernelspec language string. 2019-05-27 16:24:47 +02:00
dickmao
a969736a03 gate the add-functions in ein:polymode 2019-05-26 00:28:23 -04:00
John Miller
8a6b8aade1
Merge pull request #541 from millejoh/issue-523
Issue 523
2019-05-25 16:39:35 -05:00
dickmao
ceda628f92 Standardize metadata a bit 2019-05-25 11:31:05 -04:00
John Miller
fe3430102c Add documentation, work around smartrep.
I am starting to get annoyed by smartrep...
2019-05-25 10:23:22 -05:00
dickmao
f79a211c6c The only thing necessary for the triumph of evil...
Protect against undo-tree-mode both now and in the future.
2019-05-24 16:39:06 -04:00
Miller
321d0e6c15 ein-notebook: Command to jump to an open notebook buffer.
Per issue #523, add a command that let's user select and switch to an open
notebook buffer.
2019-05-24 14:15:36 -05:00
dickmao
c7b8b4cb27 ob-ein bugfix
Currently, an org block that has no output (e.g., `foo = 5`) never
clears the `[....]` upon block completion.

Also, no `:session` should default to localhost.
2019-05-21 19:24:24 -04:00
dickmao
e491ac6f1c Ob-ein Improvements
Bring the org offering to feature parity.
2019-05-20 10:59:43 -04:00
dickmao
6e53d8f1a8 futz with undo.ipynb 2019-05-16 10:15:11 -04:00
dickmao
8738fa5e0a If you see something, say something
Avoid silently failing as in #530 where kernelspec language is unrecognized.
2019-05-16 09:47:24 -04:00
dickmao
dcda68310b half-baked cookie jar messes up websocket 2019-05-07 22:46:37 -04:00
dickmao
f4d301d8c9 Cleanup save-before-quit logic, and polymode kill buffer bugfix
Before: Exit emacs with modified notebooks.  Be asked "You have
unsaved notebooks.  Discard changes?"  Respond no, and manually figure
out which notebooks haven't been saved.

After: Exit emacs with modified notebooks.  Be asked "Save A?".
Respond yes.  Quit without further ado.

Also, bugfix killing of buffers in polymode.  Must kill host buffer,
not indirect buffers.
2019-05-07 09:54:20 -04:00
dickmao
d3b0b97037 pm--get-existing-mode changed signature. 2019-04-29 15:35:32 -04:00
dickmao
1da03d69f6 Stop bug, Image bug
Initial SIGTERM prompts server to dutifully shutdown kernel, but
another SIGTERM necessary to kill server.  Perhaps ipython changed
since the last time I tested this.

Ipython doesn't send a display_data message upon initial plot
request.  This is probably our bug, or is it?  Document this bug in an
ecukes test.

Also enforce emacs version >= 25
2019-04-29 13:15:53 -04:00
John Miller
70845a3411
Use completing-read instead of ido-completing-read. (#514)
* Use completing-read instead of ido-completing-read.

Per @seagle0128 and issue #496.

* lisp/ein-notebook.el:

* Wrap all calls to completing-read with ein:completing-read

Use `ein:completing-read' everywhere we need to do completion as it wraps Emacs
completing-read functionality and tries to use sane defaults.
2019-04-16 10:04:11 -05:00
dickmao
921b3a94e4 need to see websocket output of eldoc call 2019-04-14 14:39:46 -04:00
dickmao
a6641f05cf cl-generic 1.0 is built-in 2019-04-14 12:31:14 -04:00
dickmao
c7ff377a89 cl-generic 0.3 is not going to cut it 2019-04-14 12:15:54 -04:00
John M. Miller
3f5173cb2f Avoid completing against punctuation (again).
Fix #506 while maintaining (I hope) the spirit of #463.
2019-04-04 16:42:59 -05:00
dickmao
d730e2f42b melpa version of polymode 2019-04-04 11:47:36 -04:00
John Miller
b591c9b26a
Merge pull request #504 from millejoh/issue-503
fix for #503
2019-04-04 06:26:30 -05:00
dickmao
539c3339dd Undo did not account for slideshow
C-c C-d breaks undo.  Fix as follows:

Before: turn on slide indicator via C-c S, toggle type with C-c C-d

After: toggle type with C-c S.

Benefits: Fixes undo, simplifies slideshow operation, elpy users are
accustomed to having C-c C-d be "jump to doc"
2019-04-04 05:45:34 -04:00
John Miller
5736cb3716 Fortify tests, tweak cursor motion in notebooklist buffers. 2019-04-03 17:34:37 -05:00
John Miller
57ca951933 fix for #503 2019-04-03 14:27:32 -05:00
dickmao
f34bdf32ff irnb is a kagglism that jupyter doesn't understand 2019-04-02 19:40:34 -04:00
dickmao
7cb37f4093 add diagnostic to eldoc test failure 2019-04-02 11:00:31 -04:00
dickmao
c0753445bc avoid hardcoding packages 2019-04-02 09:35:56 -04:00
dickmao
234cf391f9 Polymode
M-x customize-group RET ein
Toggle Ein:Polymode

Avoid trying to emulate jump-to-definition, eldoc, and autocompletion
functionalities that Elpy will always do better.

Fixes #497 #482 #418
2019-04-02 09:35:17 -04:00
finalpatch
e178f92772
fix last commit 2019-04-01 21:13:18 +11:00
finalpatch
35244abc88
indent name tag 2019-04-01 20:58:28 +11:00
John Miller
419a74ce67
Connect features (#492)
* Testing for shared eval and connecting buffers.

* Forgot the feature.

* Need a small delay to make sure code is evaluated.

* Testing for shared eval and connecting buffers.

* Forgot the feature.

* Need a small delay to make sure code is evaluated.

* Add scenario for company completion in a connected buffer.

* Works better if we test completion first.

* Update ipython version tested in travis.

* Stab in the dark to fix travis erroring under ipython 6.x

* Revert "Stab in the dark to fix travis erroring under ipython 6.x"

This reverts commit 7255d31fdb.
2019-03-27 15:53:47 -05:00
dickmao
e0369c28a6 add curl trace to M-x ein:log-pop-to-request-buffer 2019-03-21 15:28:42 -04:00
dickmao
831508d615 spacemacs diagnostic 2019-03-17 12:00:43 -04:00
dickmao
042cda12a1 spacemacs related #445 #489 #338, etc. 2019-03-16 13:49:58 -04:00
John Miller
f41cfbc410
Merge pull request #487 from dickmao/markdown-no-completion
Don't attempt completion in markdown cells
2019-03-15 23:14:39 -05:00
John Miller
f6bab5c077
Merge pull request #488 from dickmao/text-plain
text/plain over text/html
2019-03-15 10:46:03 -05:00
dickmao
22b4e58e56 preserve the no-op for now 2019-03-15 00:50:13 -04:00
dickmao
041a66cf28 need to reorder interactive arguments after function signature change 2019-03-15 00:14:22 -04:00
dickmao
6698b4f563 Don't attempt completion in markdown cells 2019-03-11 22:37:13 -04:00
dickmao
7985387178 :text/plain is also :text
Notebooks with :text/plain and :text/html outputs opt for
:text/html which looks bad in emacs.

There is already code to prefer :text over :text/html, so it should
prefer :text/plain as well.
2019-03-11 00:02:08 -04:00
John Miller
f2e9193da6
Merge pull request #481 from dickmao/self-diagnose
Move self-diagnosing information
2019-03-09 20:28:30 -06:00
dickmao
67e82d2f94 Move self-diagnosing information
Move self-diagnosing information from CONTRIBUTING.md to README.in.rst
2019-03-09 12:52:03 -05:00
dickmao
188b2c0dec Toggle output (C-c C-e) should also invalidate footer
Attempt fixing longstanding annoyance whereby `C-c C-e` leaves a
peachpuff or pink newline when toggling output with nonempty stderr.
2019-03-08 18:33:15 -05:00