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

Support anywidget in .nb.ts? #12

Open
sectra-masve opened this issue Jan 22, 2025 · 1 comment
Open

Support anywidget in .nb.ts? #12

sectra-masve opened this issue Jan 22, 2025 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@sectra-masve
Copy link

I've noted that this fork does not support anywidget widgets (~ jupyter widgets) in .nb.ts files.

I cannot determine if it's a bug or non-feature, since I know too little about the underlying implementation.

See screenshot below. Top pane is deno.nb.ts file, the bottom is .ipynb.

To be honest, I don't really understand the difference between the kernel running in deno.nb.ts and the one in deno.ipynb -- I started using this extension to solve denoland#932 which it does -- deno.ipynb works as I want using this fork :)

Perhaps a better error message about .nb.ts/ipynb differences is the only thing needed?

Image

@redking00 redking00 added the enhancement New feature or request label Jan 23, 2025
@redking00 redking00 self-assigned this Jan 23, 2025
@redking00
Copy link
Owner

Hi @sectra-masve,

I think the renderer for the "application/vnd.jupyter.widget..." mime type is part of the jupyter extension for vscode. When you open a .nb.ts notebook in vscode the jupyter extension is not activated, instead DenoNBTS does, which is the only one that has a kernel defined for that type of file.

The kernel itself is the same, the only difference is the infrastructure, DenoNBTS does not use (and does not need) neither python nor jupyter to work.

I leave the issue open, since it may be interesting (and feasible) to expand the number of renderers included in DenoNBTS.

I hope I have clarified your doubt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants