Commit graph

142 commits

Author SHA1 Message Date
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
Nathaniel Nicandro
890453b716 Re-work last commit 2018-11-16 14:23:16 -06:00
Nathaniel Nicandro
b67262f0f5 Take into account Travis' python version for tests 2018-11-16 13:37:14 -06:00
Nathaniel Nicandro
5ef71de62b Use universal time when testing encoding/decoding of time values 2018-11-16 12:08:02 +00:00
Nathaniel Nicandro
ca44a3922d Use universal time when encoding time values
* jupyter-messages.el (jupyter--encode-time): Do it.

* test/jupyter-test.el (jupyter-messages): Update test.
2018-11-16 04:49:43 -06:00
Nathaniel Nicandro
081f329da1 v0.6.0 2018-11-16 00:27:47 -06:00
Nathaniel Nicandro
42cc3d3853 Do not use the make- prefix for struct constructors 2018-11-16 00:27:47 -06:00
Nathaniel Nicandro
75abea913d Update tests 2018-11-15 23:04:27 -06:00