question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Narrow down the `IKernel` interface?

See original GitHub issue

The current IKernel interface currently defines a couple of methods such as executeRequest and completeRequest:

https://github.com/jupyterlite/jupyterlite/blob/209d48100d598014df7e6c17993b3fdca279c984/packages/kernel/src/tokens.ts#L45

Which are then called in BaseKernel here:

https://github.com/jupyterlite/jupyterlite/blob/209d48100d598014df7e6c17993b3fdca279c984/packages/kernel/src/kernel.ts#L545

This made it convenient to implement the first JavaScript and Python kernels extending BaseKernel, as it required to implement just a couple of methods to get a basic kernel to work.

However in the case of xeus based kernels, these are already handled and implemented. Having the TypeScript counterpart sounds redundant and not necessary.

We should then check whether we would like to narrow the IKernel down, for example to just the handleMessage method. And give full-control to kernel authors as to how they handle the messages.

cc @DerThorsten since we briefly discussed this

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
martinRenoucommented, Sep 1, 2021

It will also be handy for cleaning the pyolite kernel as well, as the worker is responsible for dispatching the message to the right requests.

0reactions
jtpiocommented, Oct 1, 2021

Fixed by #355

Read more comments on GitHub >

github_iconTop Results From Across the Web

ikernal.exe could not be launched 'No such interface supported'
During this time Ikernel.exe (the engine file) is running in memory from a previous process; that is why you are not allowed to...
Read more >
Application-friendly kernel interfaces - LWN.net
The "hugetlb" feature of the kernel allows applications to create and use "huge" pages in memory. These pages use a special page table...
Read more >
Interface and Execution Models in the Fluke Kernel
We report preliminary measurements comparing fully, partially and non-preemptible configurations of both process and interrupt model implementations. We find ...
Read more >
Why is there a Linux kernel policy to never break user space?
It's horrible for the user, but even more importantly, it's horrible for developers, because it means that you can't say "a bug happened"...
Read more >
Solved: Gateway becoming swamped under high NAT load
It feels like the network interfaces are getting saturated and as a result ... be running to try and narrow down what is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found