jupyter_wire 0.0.1

Jupyter kernel written in D


To use this package, run the following command in your project's root directory:

jupyter-wire

An implementation of the Jupyter wire protocol in D.

This library was written so that any backend written in or callable by D can be a jupyter kernel. A backend must be a D type that satisfies the following compile-time interface:

LanguageInfo info = T.init.languageInfo;
ExecutionResult result = T.init.execute("foo");

For a backend type that doesn't require initialisation, the following code is sufficient:

struct MyBackend {
    enum languageInfo = LanguageInfo(/*...*/);
    ExecutionResult execute(in string code) {
       // ...
    }
}

mixin Main!MyBackend;

Otherwise, initialise as necessary and call Kernel.run:

import jupyter.wire.kernel: Kernel;
auto k = kernel(backend, connectionFileName);
k.run;

Please consult the example directory for a working (albeit silly) kernel.

Authors:
  • Atila Neves
Dependencies:
zmqd, asdf
Versions:
0.0.6 2019-Sep-18
0.0.5 2019-Jul-24
0.0.4 2019-Apr-10
0.0.3 2019-Apr-04
0.0.2 2019-Mar-22
Show all 9 versions
Download Stats:
  • 0 downloads today

  • 4 downloads this week

  • 11 downloads this month

  • 85 downloads total

Score:
0.4
Short URL:
jupyter_wire.dub.pm