Commit graph

35 commits

Author SHA1 Message Date
Nathaniel Nicandro
a9ae0bcef5 Replace jupyter-repl-cell-cond with jupyter-repl-map-cells
* jupyter-repl.el
(jupyter-repl-map-cells): New function.
(jupyter-repl-cell-cond): Remove. Update callers with new function.

* jupyter-julia.el: Ditto.

* test/jupyter-test.el
(jupyter-repl-map-cells): New test.
(jupyter-repl-cell-cond): Remove.
2020-04-14 17:18:38 -05:00
Nathaniel Nicandro
403c70c83c Bump version 2020-04-07 15:13:51 -05:00
conao3
fb8c2c75fd two spaces after a period 2020-03-12 18:20:15 -05:00
conao3
1546a72f57 clean header 2020-03-10 23:39:35 -05:00
Nathaniel Nicandro
6650dd3588 Bump version 2019-07-24 16:03:22 -05:00
Nathaniel Nicandro
23a692d0b4 jupyter-completion-prefix (julia): Don't keep : prefix on non-symbol looking prefixes 2019-07-01 11:49:17 -05:00
Nathaniel Nicandro
5ea32a70f0 Change License to GPL3 2019-05-31 09:44:39 -05:00
Nathaniel Nicandro
112769e0c6
Bump version 2019-05-04 03:31:50 -05:00
Nathaniel Nicandro
53c2ffdd51
jupyter-repl-after-change (julia): Use :user-expressions key to compute Pkg prompt (#73)
Instead of using `jupyter-eval` which creates unnecessary `:execute-input` and
`:execute-result` messages, use the `:user-expressions` key of an execute
request to compute the Pkg prompt. This way the only message generated is an
`:execute-reply` and we avoid modifying the execution count.

This requires JuliaLang/IJulia.jl@85eb54ae17
2019-04-06 12:40:17 -05:00
Nathaniel Nicandro
173ec1cfaa
org-babel-jupyter-transform-code (julia): Really fix issues with the :dir argument 2019-03-14 20:04:11 -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
60670a6a35
org-babel-jupyter-transform-code (julia): Use let block in :dir expression 2019-03-12 15:13:36 -05:00
Nathaniel Nicandro
247a96fb95
org-babel-jupyter-transform-code (julia): Don't wrap :dir expression in function
Allows top level expressions like `using Plots` to work. Fixes #57.
2019-03-12 14:29:24 -05: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
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
298138912d
Remove X-URL header from some files 2019-02-17 08:35:06 -06:00
Nathaniel Nicandro
6c7ceb4ae2
jupyter-completion-prefix (julia): Allow symbol key completion in dictionaries 2019-02-15 00:03:14 -06:00
Nathaniel Nicandro
d4969cbfcc CHANGELOG.org: Add function to change version numbers 2019-02-14 23:05:00 -06:00
Nathaniel Nicandro
6eec94a97f Integrate better with font-lock and syntax-ppss in the REPL buffer
* Add `jupyter-repl-syntax-propertize-function`. This allows packages like
  `rainbow-delimiters-mode` to work regardless of what is printed as output of
  a REPL cell by setting the syntax-table property on parenthesis in REPL
  output.

* Fix an issue with the Julia REPL which would cause `syntax-ppss` to
  report the wrong parenthesis depth due to the `]` character of the REPL
  package mode. Thus interfering with how `rainbow-delimiters-mode` works.

* Ensure that the kernel language's syntax table is used when fontifying and
  adding syntax properties.
2019-02-14 16:12:00 -06:00
Nathaniel Nicandro
63717b9e39
Bump version 2019-02-12 09:17:06 -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
4795032335
jupyter-completion-prefix: Complete argument lists only in IJulia
Python will interpret a completion request here as asking for all possible
completions which is slow.
2019-01-18 22:02:24 -06:00
Nathaniel Nicandro
c70aeec6b6
Fix for "No matching paren" when entering Pkg mode in IJulia REPL 2019-01-17 20:45:45 -06:00
Nathaniel Nicandro
2231eb2378
Add the org-babel-jupyter-transform-code method
This method allows kernel languages to do transformations of a src-block's code
based on the parameters supplied to the src-block before sending the code to
the kernel. The method is called in `org-babel-expand-body:jupyter`. Currently
the only parameter supported is the `:dir` option of a src-block.
2019-01-13 22:05:35 -06:00
Nathaniel Nicandro
9d01315b56 Fix completion prefix for Julia kernels
Always add \ to the prefix when completing latex.
2018-11-26 12:37:37 -06:00
Nathaniel Nicandro
2a7b221009 Don't require an external package that may not exist everywhere 2018-11-26 12:37:37 -06:00
Nathaniel Nicandro
383f897023 Small refactoring 2018-11-26 12:37:37 -06:00
Nathaniel Nicandro
3781c07151 Add the jupyter-org-error-location method
This method is to support jumping to the line where an error occurred in a code
block directly from the `org-mode` buffer.
2018-11-26 12:37:37 -06:00
Nathaniel Nicandro
081f329da1 v0.6.0 2018-11-16 00:27:47 -06:00
Nathaniel Nicandro
a0dc347ed7 Add jupyter-julia-update-prompt
* Factor out the prompt updates in `jupyter-repl-after-change` for Julia
  kernels by using `jupyter-julia-update-prompt` to make the updates.
2018-11-04 23:56:42 -06:00
Nathaniel Nicandro
f96b258329 jupyter-repl-after-change: Use jupyter-repl-cell-reset-prompt for Julia 2018-11-04 23:56:42 -06:00
Nathaniel Nicandro
795c9b2542 Add jupyter-load-file-code 2018-10-25 23:59:47 -05:00
Nathaniel Nicandro
8896e88476 Move language support definitions to their own files
* Define `jupyter-load-language-support` which takes a client and loads the
  language support definitions of the client's kernel language.

* Call `jupyter-load-language-support` when initializing a REPL buffer in
  `jupyter-repl-mode`. Note this also takes care of loading the kernel support
  for a `jupyter-org-client' since a REPL buffer is setup before evaluating any
  `org-mode` source code blocks.

* Move language specific methods to their own files named `jupyter-LANGUAGE.el`
2018-10-25 23:59:46 -05:00