Commit graph

69 commits

Author SHA1 Message Date
Nathaniel Nicandro
865db23f28 Set the process sentinel in jupyter--start-kernel 2018-01-13 22:04:06 -06:00
Nathaniel Nicandro
710d4125b5 Update documentation and comments 2018-01-13 13:40:32 -06:00
Nathaniel Nicandro
d67883d9f5 Use unwind-protect instead of condition-case 2018-01-13 13:36:15 -06:00
Nathaniel Nicandro
a5d188e32f Move jupyter-wait-until-startup to jupyter-kernel-manager.el
Also make `jupyter-wait-until-startup` private by renaming to
`jupyter--wait-until-startup`. Startup messages are only sent once at kernel
startup, since the only way to start a kernel is through a
`jupyter-kernel-manager` it makes more sense to only allow a kernel manager to
wait for a startup message.
2018-01-12 18:14:04 -06:00
Nathaniel Nicandro
1760d4942b Remove unused variable 2018-01-12 18:10:11 -06:00
Nathaniel Nicandro
ce9321be09 Add timeout when starting a kernel 2018-01-12 18:09:30 -06:00
Nathaniel Nicandro
af82c55b1c Introduce jupyter-wait-until-startup 2018-01-11 12:14:35 -06:00
Nathaniel Nicandro
c86ab40514 Fix no method found error in jupyter-shutdown-kernel 2018-01-11 12:13:33 -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
d44d9d0c64 Actually set the kernel process of a manager when starting the kernel 2018-01-09 00:44:34 -06:00
Nathaniel Nicandro
14e02c95bf Handle {resource_dir} when starting kernel 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
6178a53638 Refactor jupyter-start-new-kernel to use jupyter-missing-request 2018-01-09 00:44:33 -06:00
Nathaniel Nicandro
c500b08104 Set default values for the jupyter-connection slots of a jupyter-kernel-manager 2018-01-09 00:44:33 -06:00
Nathaniel Nicandro
71c4314a86 jupyter-connection inherits from eieio-instance-inheritor
This way when creating kernel clients with `jupyter-kernel-manager`, we can set
the `parent-instance` of the newly created client to the manager thereby
inheriting the `jupyter-session` from the kernel manager.

Also have `jupyter-channel` objects inherit from a `jupyter-connection` so that
we can define `jupyter-send` and `jupyter-recv` methods for channels in the future.
2018-01-07 14:53:12 -06:00
Nathaniel Nicandro
312f8d5ce8 Refactor the kernel initialization process in jupyter-kernel-manager
Also add `jupyter-start-new-kernel` which starts a kernel and initializes a
client connected to the kernel.
2018-01-06 19:56:56 -06:00
Nathaniel Nicandro
b3b1066624 Re-organization of code base
- `jupyter-client.el` only contains client related code

- `jupyter-kernel-manager` related code is placed in `jupyter-kernel-manager.el`

- Socket creating functions and generating connection info plist function are
  placed in `jupyter-connection.el`. This also contains the
  `jupyter-connection` class.

- Kernelspec related functions are placed in `jupyter-kernelspec.el`

- Move general utility functions and variables requires necessary for `jupyter`
  into `jupyter-base.el`. This also contains the `jupyter-session` and
  `jupyter-request` struct definitions.
2018-01-06 19:55:45 -06:00