Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the primary use of the REPL kernel? #8

Open
janckerchen opened this issue Nov 25, 2024 · 3 comments
Open

What is the primary use of the REPL kernel? #8

janckerchen opened this issue Nov 25, 2024 · 3 comments
Assignees
Labels
debate debate / discussion

Comments

@janckerchen
Copy link

If the MIME renderer cannot be activated, What is the primary use of the REPL kernel?

image
@redking00 redking00 self-assigned this Nov 25, 2024
@redking00 redking00 added the debate debate / discussion label Nov 25, 2024
@redking00
Copy link
Owner

redking00 commented Nov 25, 2024

@janckerchen ,
To display the object you must use Deno.jupyter.display(...)
In this case (polar objects) it is the kernel that transforms the object into Displayable. Take a look at https://github.com/denoland/deno/blob/main/cli/js/40_jupyter.js to see what I mean.
My Deno.jupyter.display support in the repl is not there (yet?).
Now I am working on running the REPL kernel in a pseudoterminal environment to get better support for the text decorations with ANSI sequences that the repl performs.
My ultimate goal is to have a good standalone kernel for deno notebooks and, for that, I am exploring some possibilities.
All suggestions are welcome!

@janckerchen
Copy link
Author

janckerchen commented Nov 26, 2024

The Jupyter kernel comes pre-installed with Deno, and using the REPL kernel does not remove the Jupyter kernel, and won't offer additional capabilities for the Jupyter kernel. Therefore, what is the main purpose of developing the REPL kernel?

Perhaps I didn't fully grasp the meaning of to get better support for the text decorations with ANSI sequences that the REPL provides.

@redking00
Copy link
Owner

@janckerchen ,
What provides better support for text decoration is running the repl in a pseudoterminal environment.

The reasons to explore repl as an alternative to the kernel are:

  1. Communication with the repl does not depend on native dependency on ZeroMQ.
  2. The repl is inspectable.
  3. Experience will make it easier for me to implement controllers for other languages ​​where there is a repl but not a kernel.
  4. The repl does not have to run with --allow-all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debate debate / discussion
Projects
None yet
Development

No branches or pull requests

2 participants