Commit graph

29 commits

Author SHA1 Message Date
Nathaniel Nicandro
f71c6d1ad1 Preserve window margins upon window configuration changes 2018-01-12 18:45:08 -06:00
Nathaniel Nicandro
c507358119 Rename jupyter-repl-goto-request to jupyter-repl-goto-cell 2018-01-12 18:43:02 -06:00
Nathaniel Nicandro
4e6b7fcf58 Also call fill-region when fontifying a buffer
Only call `fill-region` if `fill-forward-paragraph` is not the default value.
2018-01-12 18:40:09 -06:00
Nathaniel Nicandro
c00357d43a Add jupyter-repl-insert-markdown 2018-01-12 18:39:45 -06:00
Nathaniel Nicandro
a517712e78 Fix insertion of html output 2018-01-12 18:39:27 -06:00
Nathaniel Nicandro
ae0943daa0 Introduce jupyter-repl-add-font-lock-properties
This function adds the necessary text properties to text inserted in a REPL
buffer.
2018-01-12 18:34:10 -06:00
Nathaniel Nicandro
dc7f13306c Cache fontification buffers 2018-01-12 18:28:23 -06:00
Nathaniel Nicandro
3385498cab Handle the case when a kernel does not respond to an is_complete_request 2018-01-11 12:26:31 -06:00
Nathaniel Nicandro
53f7f3be36 Use setq-local instead of defvar-local 2018-01-11 12:12:52 -06:00
Nathaniel Nicandro
85b3dc3167 Refactor REPL buffer initialization 2018-01-11 03:28:04 -06:00
Nathaniel Nicandro
f705dc96fe Indentation 2018-01-09 00:44:35 -06:00
Nathaniel Nicandro
ef6b72f1b7 Proper cleanup of all buffers associated with a REPL 2018-01-09 00:44:35 -06:00
Nathaniel Nicandro
bcc1677ec0 Update doc of jupyter-repl-initialize-fontification 2018-01-09 00:44:35 -06:00
Nathaniel Nicandro
ec1d9073a1 Fix use of argument in jupyter-repl-insert-latex 2018-01-09 00:44:35 -06:00
Nathaniel Nicandro
7a1a7871d3 jupyter-start-new-kernel already unpauses the heartbeat channel 2018-01-09 00:44:34 -06:00
Nathaniel Nicandro
a7539dc37b Fix checkdoc warnings 2018-01-09 00:44:34 -06:00
Nathaniel Nicandro
c7dee4aa55 Simplify kernel shutdown and interruptions in a kernel manager 2018-01-09 00:44:34 -06:00
Nathaniel Nicandro
9ba6ad331e Remove uses of lexical-let 2018-01-09 00:44:34 -06:00
Nathaniel Nicandro
326ff15d92 Add standard header comments 2018-01-09 00:44:33 -06:00
Nathaniel Nicandro
ebd616998e Add/update lots of documentation 2018-01-09 00:44:33 -06:00
Nathaniel Nicandro
85fe15ae4c Only unfinalized cells can have their code replaced
Don't set `inhibit-read-only` to t when replacing cell code. This prevents one
from replacing the cell code of a finalized cell.
2018-01-09 00:44:33 -06:00
Nathaniel Nicandro
9e2db2146b [WIP] Back to the old prefix behavior in company-jupyter-repl
This needs to be changed. `company-grab-symbol` will only grab 'bar' when
cursor is at | in the following:

    foo.bar|

We would like it to grab the whole 'foo.bar' and let the kernel figure out what
to do. Similarly for other operators like '->'. The problem that needs to be
fixed is to properly replace just the 'bar' part if 'foo.bar' is the prefix. I
believe the `match` command of a company backend will be of use.
2018-01-07 14:10:52 -06:00
Nathaniel Nicandro
8431e6834b Insert newlines in the jupyter-repl-client buffer when appropriate 2018-01-07 14:10:24 -06:00
Nathaniel Nicandro
9be91260c7 Refactor setting inserted text properties in jupyter-repl-insert 2018-01-07 14:09:39 -06:00
Nathaniel Nicandro
f003e40101 Add more documentation 2018-01-07 14:06:14 -06:00
Nathaniel Nicandro
50fb035862 Call inhibit-read-only in jupyter-repl-replace-cell-code 2018-01-06 19:56:57 -06:00
Nathaniel Nicandro
504f1ccc14 Use jupyter-start-new-kernel when initializing the REPL 2018-01-06 19:56:57 -06:00
Nathaniel Nicandro
4944a5d75a Update callback interface
- Rename `jupyter-received-message-types` to `jupyter-message-types` and add
  message types for requests as well. Also change the keys to keywords instead
  of symbols. Using plists with keywords is in line with `jupyter-messages` and
  the arguments of the jupyter request functions.

- Rename `jupyter-request-run-callbacks` to `jupyter--run-callbacks`. This is
  more of an internal function so mark it as such.

- Change the order of the first two arguments in `jupyter-add-callback` and
  `jupyter-wait-until`. In both cases you are adding a callback to a request or
  waiting for some condition to be satisfied on the request not on the message
  type. This is also the reason why `jupyter-wait-until-received` keeps the
  message type as the first argument. We are waiting until a message of a
  certain type is received for a request, but the more important object in this
  case is the message type.

- Update other files to take into account these changes.
2018-01-06 19:55:46 -06:00
Nathaniel Nicandro
b19fdbbd10 Rename jupyter-terminal-client.el to jupyter-repl-client.el 2018-01-06 19:55:46 -06:00
Renamed from jupyter-terminal-client.el (Browse further)