Skip to content

Support for custom kernels derived from xeus-javascript #16

@jtpio

Description

@jtpio

Description

xeus-javascript opens the door for quite some interesting use cases. For example it could be reused for making custom JavaScript kernels with a set of libraries already preloaded.

Looks like we would need a way to:

  • provide a different display name and logo
  • inject custom JavaScript to be run on kernel startup
  • make it possible for derived kernels to hook into the kernel messaging system, for example to send custom display data (maybe the item above would also solve that)

A concrete example would be for the p5 kernel: https://github.com/jupyterlite/p5-kernel
Currently this kernel is a bit tedious to maintain, and would benefit from the features offered by xeus-javascript.

Having such kernel compared to using a generic JavaScript kernel would still be useful, because someone authoring a p5 sketch could directly use global variables (like the setup() and draw() functions, or other globals like TWO_PI or DEGREES) provided by the p5 library, without having to import the library from a CDN.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions