Commit graph

82 commits

Author SHA1 Message Date
dickmao
5a23c06df6 burrow the disabling of buffer-undo-list down deep 2019-11-09 11:31:38 -05:00
dickmao
bcf1c2ac55 purge
purge

align pm:get-span no major mode error with diagnostic

purge
2019-11-08 16:05:11 -05:00
dickmao
e0e6c6d81f python3 and ipython 7.8 fails autocomplete
also paper over the breadcrumbs flapper.
2019-10-07 14:14:23 -04:00
dickmao
c4d38c9b3f Follow-up to "simple fixes"
`company-backends' is special-variable-p so I don't believe it can be
buffer-local.

avoid eager loading of ess or julia.

if one changes the minimal tested version of emacs, one should `make
README` to reflect.  Also, reverted back to 25.1 because #509.

no need for evm under osx (purcell).

restore a completion test (after disabling company-frontends).
2019-10-07 11:58:30 -04:00
John Miller
f49b2559d6 Company completion popups may be corrupting the connect.py buffer.
Hard to reproduce exactly what is happening, but try to work around the
possibility of a company completion popup appearing in the buffer or minibuffer.
2019-10-06 18:05:36 -05:00
dickmao
b3179a12d1 ein:notebooklist cannot see ein:jupyter-default-server-command on startup.
move default-kernel defcustom to ein:jupyter
2019-09-30 18:36:01 -04:00
dickmao
e4e04fdc3d Specifying default kernel
```
M-x customize-group RET ein
Select Ein:Notebooklist-Default-Kernel
```

Closes #82
2019-09-29 12:19:10 -04:00
dickmao
2ca536fdec add org-export test 2019-08-10 21:16:51 -04:00
dickmao
84a9fe7d21 Imperfect polymode testing
Unfortunately, no good way to test font-lock as font-lock-mode won't
activate under noninteractive ecukes (can try --no-win or --win, but
won't fly under travis)

In practice, polymode font-lock bugs often manifest themselves much as
issue #456 did.  The rear-nonsticky property on the input prompt gets
washed away by font-lock and brokenness ensues.
2019-06-10 20:07:58 -04:00
dickmao
3f6e507857 Do not assume "notebook" subcommand
Some users run jupyter via `jupyter-notebook` instead of `jupyter`,
and break because we unilaterally impose the "notebook" subcommand.

Those users can now:
```
M-x customize-group ein
Jupyter Server Use Subcommand: Omit
```
2019-06-05 14:30:26 -04:00
dickmao
1b745d4781 evil doesn't turn off undo-tree-mode when you toggle it 2019-05-24 16:39:12 -04: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
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
88d9158a66 add diagnostic for undo test 2019-05-16 10:51:57 -04:00
dickmao
6e53d8f1a8 futz with undo.ipynb 2019-05-16 10:15:11 -04:00
dickmao
cb0a819929 Julia, etc.
Prove we are agnostic about kernels.
2019-05-15 06:40:10 -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
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
dickmao
921b3a94e4 need to see websocket output of eldoc call 2019-04-14 14:39:46 -04:00
John Miller
5736cb3716 Fortify tests, tweak cursor motion in notebooklist buffers. 2019-04-03 17:34:37 -05:00
dickmao
7cb37f4093 add diagnostic to eldoc test failure 2019-04-02 11:00:31 -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
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
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
John Miller
80306130cf
Merge pull request #475 from dickmao/ob-ein-reconnect-kernel
reconnect kernel if necessary under org-ctrl-c-ctrl-c
2019-02-26 19:51:14 -06:00
dickmao
7ba5a0d5d3 Be less opaque about unfound jupyter executable
Fixes #473
2019-02-26 18:04:50 -05:00
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
a4d591255a maybe matplotlib needs warming up 2019-02-22 00:18:13 -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
2f19904fe7 travis buttressing 2019-02-19 15:29:18 -05:00
dickmao
ed6482096e Add ob-ein tests
Also, speed up login and other cleanups
2019-02-19 10:06:15 -05:00
dickmao
fbda27ba7f Surface curl errors
In light of #425 and #456, provide more guidance on curl errors.

Also, clean up eldoc stub.  Leveraging elpy's eldoc perfection seems
the only sensible choice, however.
2019-01-21 13:42:35 -05:00
John Miller
624e9549ef
Merge pull request #444 from dickmao/undo-default-true
Enable undo by default
2018-12-29 17:15:06 -06:00
dickmao
97997798d1 fix a test now that undo defaults true 2018-12-28 22:38:52 -05:00
dickmao
e5fdb91b8d itertools.accumulate not in python2
also fix an install error
2018-12-28 21:45:12 -05:00
dickmao
129afa5fb4 Respect cursor_start and cursor_end in matches
The :cursor_start and :cursor_end fields tell us whether we need to
prepend the prefix ourselves.

Fixes #436
2018-12-28 21:14:11 -05:00
dickmao
bead667ee0 Clean up multilang
Do not assume python... leverage ESS to improve R interaction.
Fix both undo and fontify in the presence of toggling cells (`C-c
C-t`)
Fix and test switching kernels
2018-12-08 21:25:48 -05:00
dickmao
f0984eab55 jupyterhub basic (PAM only)
`ein:login` or `ein:notebooklist-login` is the preferred way to access
jupyterhub, although `ein:jupyterhub-connect` is still autoloaded.
2018-12-04 18:31:44 -05:00
dickmao
36727c9415 new notebook needs more time 2018-12-02 17:11:55 -05:00
dickmao
52ac49cc5e fortify travis defences 2018-11-28 21:29:32 -05:00
dickmao
d4ef4ed81c Allow disabling of autocomplete
```
M-x customize-group RET ein-completion
```
Set `Ein:Completion Backend` to `ein:use-none-backend`, Set `State` to
`Save for Future Sessions`.

Also use `featurep` and `with-eval-after-load` to clean up the
subpackage requiring gymnastics.
2018-11-28 17:45:23 -05:00
John Miller
07bc906df9 Maybe using the right name for the map will help.
Sigh.
2018-11-15 13:53:22 -06:00
John Miller
a186c52fd1 Wouldn't it be interesting if this actually worked? 2018-11-14 19:00:27 -06:00
John Miller
6a23dded5a Update tests for change in notification messages. 2018-11-13 20:58:43 -06:00
dickmao
6ca6752319 C-c C-q improved visual feedback
As `ein:notebok-kill-kernel-then-close-cmmand` must wait for the
server to delete the session, the buffer wouldn't disappear right
away, leaving the user nonplussed whether the `C-c C-q` took.  Display
a status message "Ending session" with a modest animation instead.

Also add a "Stop" test for notebooklist.  Sorry about breaking "Stop"
in ee3b0f0
2018-11-10 00:09:44 -05:00
John Miller
e6d377bad0 Update test scenario one more time. 2018-11-08 11:56:47 -06:00
dickmao
901748dc49 this is a debug message, not a verbose 2018-11-08 11:36:10 -06:00