Nathaniel Nicandro
580776bf58
Add org-babel-jupyter-src-block-session
2019-03-28 23:29:02 -05:00
Nathaniel Nicandro
7ea17ae492
Refactor heartbeat channel
...
Mainly variable re-naming and in preparation for adding in auto-restart
support.
* `jupyter-hb-consider-dead-periods` -> `jupyter-hb-max-failures`
* Also convert to a customizable variable
* `kernel-died-cb` -> `dead-cb`
2019-03-22 20:10:22 -05:00
Nathaniel Nicandro
3f3db53527
Handle ANSI escape sequences in org-mode
src-block results
2019-03-20 21:08:53 -05:00
Nathaniel Nicandro
08d974f4db
jupyter-requests-pending-p: Fix issues and add test
...
* Use `hash-table-count`
* Fix the check on determining how many pending requests there are
2019-03-17 02:00:00 -05:00
Nathaniel Nicandro
3f55bb0def
jupyter-test-with-kernel-client: Consider a shutdown kernel
2019-03-17 01:59:00 -05:00
Nathaniel Nicandro
83af335166
Bump version
2019-03-14 09:29:11 -05:00
Nathaniel Nicandro
662e983612
Don't require subr-x
at runtime
2019-03-14 09:16:44 -05:00
Nathaniel Nicandro
581aab10b6
jupyter-kernel-language: Change return value to be a symbol
...
This avoids interning a string for every method dispatch using the
jupyter-lang method specializer.
2019-03-07 22:51:25 -06:00
Nathaniel Nicandro
8321f9c301
Preserve whitespace when wrapping result in a drawer
2019-03-03 17:55:23 -06:00
Nathaniel Nicandro
e785b97963
Consider whitespace around org-mode
src-block results in tests
2019-03-03 17:12:08 -06:00
Nathaniel Nicandro
e1f5b53fbb
Don't rely on "status: starting" message in kernel restart test
2019-03-02 19:26:32 -06:00
Nathaniel Nicandro
e127e1d45b
Add jupyter-repl-cell-cond
2019-03-02 18:14:49 -06:00
Nathaniel Nicandro
1f5c7743d5
Working towards a cleaner REPL restart
...
See #50 .
2019-03-02 18:14:49 -06:00
Nathaniel Nicandro
2a3b175f26
jupyter-repl-after-change: Maintain field membership at cell beginning
...
This handles an edge case where `field-end` would return the position at the
beginning of a cell even though there was text that was part of the cell code
after that position. The issue had to do with the interaction between the
sticky text properties at field boundaries. See #38 .
2019-02-27 14:44:23 -06:00
Nathaniel Nicandro
ae5ed507fb
Handle prompt margin overflow in the REPL
...
Whenever a prompt string exceeds `jupyter-repl-prompt-margin-width`, increase
`jupyter-repl-prompt-margin-width` so that is can accommodate the string and
redisplay all prompts.
2019-02-22 20:57:42 -06:00
Nathaniel Nicandro
e0a3e09a45
Add test for :display header argument in src-blocks
2019-02-22 08:32:00 -06:00
Nathaniel Nicandro
b8067e70c8
Fix order of print format arguments
2019-02-22 08:30:00 -06:00
Nathaniel Nicandro
f7df9cb9cf
Allow table results to be suppressed by ":results scalar"
2019-02-22 08:29:00 -06:00
UndeadKernel
92d1d661c9
feature: Specify mime precedence using ":display" in org source blocks ( #17 )
...
A BEGIN_SRC block can specify which mime type to display by enabling the
user to manually set the priority order of mime types.
e.g.: In the following, :text/plain will be used before considering :text/html
#+BEGIN_SRC jupyter-python :display plain html
2019-02-22 07:56:22 -06:00
Nathaniel Nicandro
9484735c06
Fix undo in the REPL
...
When inserting continuation prompts, extra text deletion entries where being
added in `buffer-undo-list` which caused yanked text to not be undone fully
since it would add in those entries before undoing the yank.
2019-02-21 23:21:22 -06:00
Nathaniel Nicandro
d927d3d58d
Test against the newest version of org-mode
2019-02-21 17:14:59 -06:00
Nathaniel Nicandro
70f4b1b9a3
jupyter-org--append-stream-result: Consider org-edit-src-content-indentation
2019-02-21 17:14:59 -06:00
Nathaniel Nicandro
7d72673604
Account for changes in org-mode
9.2
...
See #36 . There were some assumptions being made on how `org-mode` interpreted
`fixed-width` elements which were changes in `org-mode` 9.2.
2019-02-21 17:14:59 -06:00
Nathaniel Nicandro
1a184403a4
Update test
2019-02-17 23:41:01 -06:00
Nathaniel Nicandro
7122b239e0
Move org-mode
test setup functions to test/test-helper.el
2019-02-16 15:30:05 -06:00
Nathaniel Nicandro
57eeb3dd52
Add tests for jupyter-with-display-buffer
2019-02-16 11:27:44 -06:00
Nathaniel Nicandro
1109681475
Add tests for jupyter-repl-syntax-propertize-function
2019-02-14 23:06:00 -06:00
Nathaniel Nicandro
75f9df7d0a
jupyter-repl-history-add-input
-> jupyter-repl-history-add
2019-02-14 16:42:12 -06:00
Nathaniel Nicandro
143eacc6fc
jupyter-repl-finalize-cell: Go to point-max
first
...
The "current input cell" is intended to be the last cell in the REPL buffer so
go to `point-max` before calling `jupyter-repl-cell-beginning-position`.
2019-02-14 16:42:12 -06:00
Nathaniel Nicandro
4978c28add
Revert jupy- prefix to jupyter- for org-mode src-blocks
...
Closes #5 .
2019-02-12 09:17:06 -06:00
Nathaniel Nicandro
ee62fafdf6
Fix #14 : Undo rear-nonsticky property inserted by insert-for-yank
2019-01-25 23:59:51 -06:00
Nathaniel Nicandro
9ef7553b8a
Handle field property specially when yanking in the REPL
2019-01-23 19:45:41 -06:00
Nathaniel Nicandro
dbaf9a5524
jupyter-
-> jupyter-test-
for test related macros
2019-01-23 19:41:46 -06:00
Nathaniel Nicandro
d709b31a64
Add jupyter-message-lambda
...
This simplifies the writing of message callbacks.
2019-01-22 18:39:17 -06:00
Nathaniel Nicandro
0e6192c86e
Refactor implementation of :dir option in Jupyter src-block's
2019-01-18 23:01:57 -06:00
Nathaniel Nicandro
9b955398cd
Fix 09ebdac
jupyter-org-result (text/plain): Be stricter with usage of `org-babel-script-escape
...
I guess I should actually run the tests before uploading to github...
2019-01-16 18:50:02 -06:00
Nathaniel Nicandro
05011fa04e
Support images with width and height metadata
2019-01-12 20:38:35 -06:00
Nathaniel Nicandro
86da392a17
Run append image link tests on asynchronous code blocks
2019-01-12 20:21:48 -06:00
Nathaniel Nicandro
786ff55ff4
Add test for appending multiple file links in org-mode
blocks
2019-01-10 23:08:27 -06:00
Nathaniel Nicandro
8e142b32f3
Fix file headers
2019-01-10 23:08:27 -06:00
Nathaniel Nicandro
4c16398448
jupyter-test-ipython-kernel-version: Set the process-environment
...
Needed to pick up `PYTHONPATH` settings and the like.
2019-01-10 23:08:27 -06:00
Nathaniel Nicandro
b735c1a192
Update tests consider changes in jupyter-repl-cell-code-end-position
2018-12-16 18:48:41 -06:00
Nathaniel Nicandro
15cd6b9f2d
Add org-mode stream result tests
2018-12-10 21:36:35 -06:00
Nathaniel Nicandro
2d85d1a17a
Update org-mode
tests
2018-11-26 12:37:37 -06:00
Nathaniel Nicandro
46e0c24930
Update org-mode tests
2018-11-26 12:37:37 -06:00
Nathaniel Nicandro
faa28913dc
Update org-mode
tests
2018-11-26 12:37:37 -06:00
Nathaniel Nicandro
2f7268c8dc
Temporarily set the timezone when testing time encoding/decoding
2018-11-17 16:26:03 -06:00
Nathaniel Nicandro
7783e402f9
jupyter-insert-html: Recognize html that should be parsed as XML
...
If the `text/html` results returned from the kernel contain an XML prolog then
use `libxml-parse-xml-region` to parse the results otherwise use
`libxml-parse-html-region`.
* jupyter-mime (jupyter-insert-html): Do it.
* test/jupyter-test.el (jupyter-html-output): Add test for html output.
2018-11-17 15:43:40 -06:00
Nathaniel Nicandro
82cea4c0d1
Break up large tests into smaller ones
2018-11-17 11:47:55 -06:00
Nathaniel Nicandro
df44d53528
Tests work on Travis
2018-11-17 11:47:55 -06:00