symmetryinvestments / jupyter-wire

Jupyter wire protocol implementation enabling D plugins to be jupyter kernels
Boost Software License 1.0
13 stars 4 forks source link

d interpreter with jupyter-wire #28

Closed joequant closed 4 years ago

joequant commented 4 years ago

How difficult would it be to put in a dlang repl loop with a jupyter-wire. Something like xeus-cling.

joequant commented 4 years ago

It looks like adding connecting jupyter-wire with drepl should do the trick.

skoppe commented 4 years ago

I haven't looked at drepl, but if its any good, it should be straightforward.

joequant commented 4 years ago

Trying to integrate drepl with jupyter-wire on branch dlang_kernel on branch joequant

I've got the kernel talking to the drepl. Still getting errors, but would appreciate some feedback if I'm doing something wrong.

joequant commented 4 years ago

The error I'm getting is...

Error: Cannot open file /tmp/drepl.DUM7Rh/_mod0.d' in modew' (No such file or directory)

What I think is happening is that when the interpreter goes out of scope, it removes the temporary directories. What I want to do is to create one interpreter for each kernel. The trouble that I run into is that when I create the drepl statically, there are system calls that can't be created statically.

atilaneves commented 4 years ago

It's not in the remit of jupyter-wire to implement any kernel, but to allow kernels to be written easily.