You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TLDR: I don't think it's possible to use server-side widgets using Jupyter Notebooks and Quarto. It may be possible to render basic widgets in a .qmd document instead, though there is confusion about which Jupyter widgets actually will work.
In the documentation, it appears that this should be possible
"Jupyter Widgets and htmlwidgets ... run entirely client-side so can be deployed within normal static HTML documents.
There are several issues that suggest that this documentation is somewhat misleading.
In quarto-dev/quarto-cli#6496, some people say that there is confusion because some, but not all of the client-side widgets seem to work. That point aside, the following working example was proposed:
---
format: html
---
```{python}
import ipywidgets as widgets
widgets.IntSlider()
```
and then calling the command quarto render example.qmd and opening the resulting file, example.html, in a browser tab.
This work for me as well when I put that code in a quarto markdown document (.qmd) only.
However, when I try the same example using a Jupyter Notebook, the code appears just the same, but the javascript widget doesn't appear.
The text was updated successfully, but these errors were encountered:
I think it would be worth adding something about the current state of affairs with Quarto. I know @JuanCab is finding there are issues with voici as well. Providing folks with an accurate state of affairs is useful, even if the state of affairs is that the tool doesn't quite do what it seems it might...
TLDR: I don't think it's possible to use server-side widgets using Jupyter Notebooks and Quarto. It may be possible to render basic widgets in a .qmd document instead, though there is confusion about which Jupyter widgets actually will work.
In the documentation, it appears that this should be possible
There are several issues that suggest that this documentation is somewhat misleading.
In quarto-dev/quarto-cli#6496, some people say that there is confusion because some, but not all of the client-side widgets seem to work. That point aside, the following working example was proposed:
and then calling the command
quarto render example.qmd
and opening the resulting file,example.html
, in a browser tab.This work for me as well when I put that code in a quarto markdown document (.qmd) only.
However, when I try the same example using a Jupyter Notebook, the code appears just the same, but the javascript widget doesn't appear.
The text was updated successfully, but these errors were encountered: