Commit graph

1545 commits

Author SHA1 Message Date
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
fb141f1020
Increase jupyter-default-timeout to 2.5 s
Closes #43.
2019-03-02 18:35:44 -06:00
Nathaniel Nicandro
0e0b78259e
jupyter-long-timeout: Fix typo 2019-03-02 18:24:48 -06:00
Nathaniel Nicandro
fe6cf4be48
Fix documentation of hook variables 2019-03-02 18:24:48 -06:00
Nathaniel Nicandro
99f1099d68
jupyter-repl-available-repl-buffers: Use provided-mode-derived-p
So that a mode derived from `jupyter-repl-lang-mode` is still considered a
match.
2019-03-02 18:24:48 -06:00
Nathaniel Nicandro
5651074ab3
jupyter-repl-after-change (julia): Generalize blink-paren-function integration 2019-03-02 18:14:49 -06:00
Nathaniel Nicandro
9114397f2c
jupyter-repl-syntax-propertize-function: Move Julia specific setup to jupyter-julia.el 2019-03-02 18:14:49 -06:00
Nathaniel Nicandro
e127e1d45b
Add jupyter-repl-cell-cond 2019-03-02 18:14:49 -06:00
Nathaniel Nicandro
2c5cde166f
jupyter-repl-interaction-mode-line: Check heartbeat first 2019-03-02 18:14:49 -06:00
Nathaniel Nicandro
57e9af3a13
jupyter-handle-message: Update execution-state for any status message 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
dbfcac1c90
Add org-babel-jupyter-override-src-block
Closes #41.
2019-03-01 18:09:27 -06:00
Nathaniel Nicandro
bdc52c485d
Add jupyter-pop-up-frame
Closes #34
2019-03-01 15:52:42 -06:00
Nathaniel Nicandro
541e5dbe6d
jupyter-org--image-result: Let caller determine if image data is base64 encoded 2019-03-01 14:41:53 -06:00
Nathaniel Nicandro
f31b925ca3
jupyter-org-src-block: Fix typo 2019-02-28 12:59:04 -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
4e93839004
Narrow to REPL cell when calling language mode font-lock functions 2019-02-27 14:44:23 -06:00
Nathaniel Nicandro
c903ab39f7
jupyter-channel-ioloop.el: Fix commentary functions calls 2019-02-27 12:54:58 -06:00
Nathaniel Nicandro
a76e8d5151
jupyter-repl-do-after-change: Widen the buffer before doing any work
See #38.
2019-02-25 20:59:12 -06:00
Nathaniel Nicandro
75fa0eea29
Add REPL prompt string constants 2019-02-22 21:05:45 -06:00
Nathaniel Nicandro
55664b6854
jupyter-repl-after-change (julia): Don't replace the REPL prompt
For Pkg mode, help mode, and shell command mode just add the corresponding
prompt as part of the REPL cell itself (as an overlay of the mode character)
instead of overriding the REPL input prompt. Fixes #39.
2019-02-22 21:05:45 -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
f25a9b6070
Update README on src-block header arguments 2019-02-22 08:48:24 -06:00
Nathaniel Nicandro
82dfe3e340 Re-organization 2019-02-22 08:33:00 -06:00
Nathaniel Nicandro
e0a3e09a45 Add test for :display header argument in src-blocks 2019-02-22 08:32:00 -06:00
Nathaniel Nicandro
960372d344 Add documentation about :display in jupyter-org-result 2019-02-22 08:31: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
e357166371
Add jupyter-org-insert-element 2019-02-21 17:14:59 -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
b1af59cbf3
jupyter-org--stream-context-p: Consider an empty drawer 2019-02-21 08:14:09 -06:00
Nathaniel Nicandro
de289fc90b
jupyter-org--add-result: Better doc string 2019-02-20 18:42:09 -06:00
Nathaniel Nicandro
ea5ae74c1d
Don't rely on temporarily clearing :file header argument
Attempt at #16.
2019-02-20 13:34:10 -06:00
Nathaniel Nicandro
67a1d9ee1d
jupyter--start-kernel: Use de-structuring in loop body 2019-02-19 10:03:03 -06:00
Nathaniel Nicandro
b5bae296b8
Also update Version header in test files 2019-02-19 09:45:55 -06:00
Nathaniel Nicandro
39fdac90dd
jupyter-org-client.el: Remove unused function declarations 2019-02-19 09:38:30 -06:00
Nathaniel Nicandro
10b1766035
jupyter-org-sync-results: Use when-let* 2019-02-19 09:33:58 -06:00
Nathaniel Nicandro
19e18f36f8
jupyter-repl-syntax-propertize-function: Fix bounds used 2019-02-19 02:58:55 -06:00
Nathaniel Nicandro
6d59862b4d
Remove redundant with-syntax-table 2019-02-18 11:31:57 -06:00
Nathaniel Nicandro
183547403d
jupyter-repl-ret: Use cond 2019-02-18 11:31:57 -06:00
Nathaniel Nicandro
76315d74bd
Fix byte compile error 2019-02-18 11:31:57 -06:00
Nathaniel Nicandro
1a184403a4
Update test 2019-02-17 23:41:01 -06:00
Nathaniel Nicandro
3f76534121 jupyter-repl-syntax-propertize-function: Consider string syntax in output 2019-02-17 23:07:00 -06:00
Nathaniel Nicandro
484b0934a3 Fix typos 2019-02-17 23:06:00 -06:00