Commit graph

2908 commits

Author SHA1 Message Date
John Miller
50b9a8d134 ob-ein: Better output for babel.
Greg Sexton clearly knows his way around org better than I. For async execution
make sure we insert results "the org way."
2019-02-17 21:10:08 -06:00
John Miller
111826958f Process all output types on json export.
We were only selectively fixing the mime type for execute_result outputs, now we
treat those the same as we do display outputs. Also fixed image/svg+xml MIME
type wherever I could find it.
2019-02-09 13:36:37 -06:00
John Miller
b276d6ad0a Fix mime type for svg images.
Update, part 1, for #467.
2019-02-09 12:59:55 -06:00
John Miller
3e6c77b8a3
Merge pull request #463 from llcc/master
Ignore nonascii completion
2019-02-04 13:01:56 -06:00
leizhe
46e3fc6247 ignore nonascii completion 2019-02-02 22:32:27 +09:00
John Miller
9ccb216879
Merge pull request #461 from dickmao/sticky-issue-456
Input cell overlay affects rear-nonsticky of preceding newline
2019-01-23 15:45:57 -06:00
dickmao
34b30b5e60 User llcc reports read-only bug in fresh input cell under mingw32 2019-01-23 08:05:09 -05:00
John Miller
297b216a42
Merge pull request #459 from dickmao/turn-off-debug
turn off --debug in jupyter
2019-01-22 13:13:29 -06:00
John Miller
1c0d407998
Merge pull request #457 from dickmao/curl-issue-456
Surface curl errors
2019-01-22 12:59:22 -06:00
dickmao
428f0a1493 turn off --debug in jupyter 2019-01-22 08:15:36 -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
bcbefbe0b9 ein-notebook: Workaround for issue #454
EIN can sometimes lose the reference to the notebook buffer when trying to save
"huge" notebooks. This is a temporary (hah!) workaround until the problem is
better understood.
2019-01-21 07:54:44 -06:00
John Miller
0b1562f1b3
Merge pull request #455 from sam-s/master
Use standard functionality instead of ad hoc functions
2019-01-16 21:59:13 -06:00
Sam Steingold
5ee7ae7d6b last patch was too aggressive 2019-01-16 18:23:39 -05:00
Sam Steingold
48fa153435 Use standard functionality instead of ad hoc functions
(ein:filter identity ...) ---> (delete nil ...)
ein:filter --> seq-filter
hash-vals --> hash-table-values
hash-keys --> hash-table-keys
2019-01-15 11:26:09 -05:00
John Miller
37072c3553
Merge pull request #453 from millejoh/dynamic-javascript
Dynamic javascript
2019-01-15 09:57:19 -06:00
John Miller
2f96fc33ac ein-skewer: Handle html in the browser.
If dynamic-javascript is enabled and we see HTML in the display data after
executing a cell, then we create a web page for it in the simple-httpd server.
2019-01-14 18:23:22 -06:00
John Miller
4c33a8b057 ein-utils: Make gc-cons-threshold adjustment optional.
EIN doesn't seem to always return gc-cons-threshold to its original value; this
makes for performance problems, particularly on Windows builds, so this behavior
is now optional and user-configurable.
2019-01-14 12:56:32 -06:00
John Miller
793d5fa192 ein-skewer: Async javascript eval, better output appending.
No longer flag if skewer is running, instead check running status of httpd server.
EIN also is back to asynchronously executing javascript code and does a much
better job of finding where to put the output.
2019-01-14 12:54:16 -06:00
John Miller
a191cea90c
Merge pull request #452 from dickmao/homebrew-workaround
homebrew workaround
2019-01-13 08:44:45 -06:00
John Miller
253d5a7131
Merge pull request #451 from dickmao/bug-issue-447
Mitigate undo diagnostic failure
2019-01-13 08:44:22 -06:00
dickmao
0637ef212b Homebrew workaround
https://github.com/Homebrew/brew/issues/5513
2019-01-12 12:36:12 -05:00
dickmao
9825aa39c0 if C-/ is mapped to anything other than native undo, disable undoing 2019-01-11 08:32:51 -05:00
John Miller
9f2ad8bf10
Merge pull request #450 from dickmao/bug-issue-447
Disable undo when failure diagnostic triggered
2019-01-08 21:03:14 -06:00
dickmao
4c60dec927 Disable undo when failure diagnostic triggered 2019-01-07 08:08:11 -05:00
John Miller
83dfb44fd9
Merge pull request #446 from dickmao/fix-latex-toggle
Fix toggle latex fragment
2019-01-03 21:39:57 -06:00
dickmao
126bd6afac kill-buffer-hook getting cloned by org! 2019-01-02 19:54:46 -05:00
dickmao
1a32c5f832 Less wonky toggle latex fragment
Using the raw `org-toggle-latex-fragment` function creates some havoc
with the overlays, resulting in nonfunctional notebooks.  Add some
custom logic to improve behaviour.
2019-01-01 21:16:34 -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
John Miller
ed154e91e0
Merge pull request #443 from dickmao/bug-issue-436
Respect cursor_start and cursor_end in matches
2018-12-29 17:05:47 -06:00
dickmao
97997798d1 fix a test now that undo defaults true 2018-12-28 22:38:52 -05:00
dickmao
58de1294f8 default undo to true 2018-12-28 22:31:23 -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
John Miller
4c84801be0 Revert "Merge pull request #441 from dickmao/bug-issue-436"
This reverts commit 1b5d23e7db, reversing
changes made to 57cf533466.
2018-12-26 15:26:18 -06:00
John Miller
1b5d23e7db
Merge pull request #441 from dickmao/bug-issue-436
[WIP] Respect cursor_start and cursor_end in company
2018-12-26 15:10:12 -06:00
John Miller
57cf533466
Merge pull request #440 from sam-s/master
ein:version: accept optional prefix arg to copy version to clipboard
2018-12-26 13:14:44 -06:00
dickmao
fb15e82d1a WIP Respect cursor_start and cursor_end in matches
With respect to ein-company,
Py2 kernels prepend prefixes, e.g., np.array.
Py3 kernels do not, e.g., array.
The :cursor_start and :cursor_end fields tell us whether we need to
prepend the prefix ourselves.

Fixes #436
2018-12-26 03:17:51 -05:00
dickmao
387ceb0046 complete-on-dot is not optional if you agree to auto-completion 2018-12-25 19:12:26 -05:00
dickmao
e328e86105 Clarify what notebook version means
Say `Contents API 5.7.4` instead of `Notebook v5` in notebooklist.

EIN doesn't care about the python version (2.7, 3.5) or the
ipython version (5.8.0, 6.2.1).  The "jupyter notebook contents api"
version (currently at 5.7.4) is the thing that matters.
2018-12-25 10:59:18 -05:00
Sam Steingold
25835fdce4 ein:version: accept optional prefix arg to copy version to clipboard 2018-12-24 11:20:27 -05:00
John Miller
82a832de1a
Merge pull request #434 from dickmao/delete-if
Fixes #433
2018-12-13 12:44:01 -06:00
dickmao
dc48a7e75d Fixes #433 2018-12-13 13:27:27 -05:00
John Miller
76c3ddb7ce Revert "Merge pull request #426 from millejoh/faster-generate-menu"
This reverts commit 0ba5e42009, reversing
changes made to 483bbe8d3f.
2018-12-12 09:37:21 -06:00
John Miller
0ba5e42009
Merge pull request #426 from millejoh/faster-generate-menu
ein-utils: Make ein:get-docstring a deferred construct.
2018-12-12 08:33:50 -06:00
John Miller
483bbe8d3f
Merge pull request #429 from dickmao/betteR
Clean up multilang
2018-12-11 09:31:51 -06:00
dickmao
3c18cda125 reverse hunks 2018-12-11 08:48:40 -05:00
dickmao
7a6ab26f5c config path must be /tmp for travis evm 2018-12-08 22:03:04 -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
John Miller
ba1c812147 ein-utils: Make ein:get-docstring a deferred construct.
This may or may not help performance during startup. See issue #409.
2018-12-06 09:11:45 -06:00