morganstanley / hobbes

A language and an embedded JIT compiler
http://hobbes.readthedocs.io/
Apache License 2.0
1.16k stars 105 forks source link

Create Jupyter kernel for hobbes #399

Open brianegge opened 3 years ago

brianegge commented 3 years ago

Notebook offer a number of advantages over hi

https://github.com/jupyter/jupyter/wiki/Jupyter-kernels

adam-antonik commented 3 years ago

I've got one of those working if you want it. It would mean pulling in many more dependencies though like ZMQ, nlohmann/json and jupyter-xeus. So I suppose I mean I've got the C++ code for a simple kernel, but little idea how you'd want to structure it in the project's build. Perhaps it should be a separate repo?

brianegge commented 3 years ago

Wow! I look forward to trying it out.

I would expect a separate repo would work best, as the current hobbes code has very few dependencies.

smunix commented 3 years ago

I've got one of those working if you want it. It would mean pulling in many more dependencies though like ZMQ, nlohmann/json and jupyter-xeus.

Are these dependencies baked in the core hobbes library or are you introducing them in separate new applications? I like to think that dependencies in separate components are easier to deal with than the former. I second @brianegge suggestion to push in a separate repo so we can better assess ways to integrate in the Hobbes repo next.