Version: 1.0.0
The Plugin API allows you to make Hydrogen awesome. You will be able to interact with this class in your Hydrogen Plugin using Atom's Service API.
Take a look at our Example Plugin and the Atom Flight Manual for learning how to interact with Hydrogen in your own plugin.
Calls your callback when the kernel has changed.
- Function Callback
Get the HydrogenKernel
of the currently active text editor.
- Class
HydrogenKernel
Get the atom$Range
that will run if hydrogen:run-cell
is called.
null
is returned if no active text editor.
- Class
atom$Range
The HydrogenKernel
class wraps Hydrogen's internal representation of kernels
and exposes a small set of methods that should be usable by plugins.
The language of the kernel, as specified in its kernelspec
The display name of the kernel, as specified in its kernelspec
Add a kernel middleware, which allows intercepting and issuing commands to the kernel.
If the methods of a middleware
object are added/modified/deleted after
addMiddleware
has been called, the changes will take effect immediately.
- HydrogenKernelMiddleware middleware
Calls your callback when the kernel has been destroyed.
- Function Callback
Get the connection file of the kernel.
- String Path to connection file.