Skip to content

Commit 39f3d17

Browse files
committed
🐛 interactive itables were not working in browser
- in some cases the exported html wasn't working without initializing itables
1 parent f629e84 commit 39f3d17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vuegen/quarto_reportview.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,8 +801,9 @@ def _generate_component_imports(self, component: r.Component) -> List[str]:
801801
r.PlotType.PLOTLY: ["import plotly.io as pio", "import requests"],
802802
},
803803
"dataframe": [
804+
"init_notebook_mode(all_interactive=True)", # ! somehow order is random in qmd file
804805
"import pandas as pd",
805-
"from itables import show",
806+
"from itables import show, init_notebook_mode",
806807
"import dataframe_image as dfi",
807808
],
808809
"markdown": ["import IPython.display as display", "import requests"],

0 commit comments

Comments
 (0)