-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Thanks a bunch for the work here @ibdafna; even in its current form it feels like this could be valuable in a lot of situations!
I have an app in which I need dash.data_table; the import collection looks as follows:
//@ts-ignore
window.dashApp = `import dash
from dash.dependencies import Input, Output
import dash
from dash import dcc
from dash import html
from dash import dash_table
from flask import Flask
import pandas as pd
import plotly.graph_objects as go
import plotly.express as px
import plotly.io as pio
from plotly.subplots import make_subplots
Based on the contents of https://github.com/ibdafna/webdash/blob/main/src/webdash.ts it feels like dash_table should be usable.
I can't use npm run dev/prod for some reason, but if I run npm run build and just serve the contents of dist through python -m http.server, pyodide initializes properly, the entire import block is run, but I get a runtime error once it encounters the first usage of dash_table in the script:
f2af6847-4fee-4b0e-a1aa-e9b610c26d4a:125 Error: dash_table was not found.
at Cr (caad487e-1432-4373-ac43-bb5a069ee28a:2:61243)
at _a (caad487e-1432-4373-ac43-bb5a069ee28a:2:109842)
at ja (caad487e-1432-4373-ac43-bb5a069ee28a:2:110358)
at caad487e-1432-4373-ac43-bb5a069ee28a:2:110697
at Array.forEach (<anonymous>)
at ja (caad487e-1432-4373-ac43-bb5a069ee28a:2:110644)
at Ea (caad487e-1432-4373-ac43-bb5a069ee28a:2:110098)
at Rc (caad487e-1432-4373-ac43-bb5a069ee28a:2:155015)
at Bh (f2af6847-4fee-4b0e-a1aa-e9b610c26d4a:126:456)
at Dj (f2af6847-4fee-4b0e-a1aa-e9b610c26d4a:162:476)
Me @ f2af6847-4fee-4b0e-a1aa-e9b610c26d4a:125
Ih.c.callback @ f2af6847-4fee-4b0e-a1aa-e9b610c26d4a:138
Wg @ f2af6847-4fee-4b0e-a1aa-e9b610c26d4a:67
oj @ f2af6847-4fee-4b0e-a1aa-e9b610c26d4a:127
Aj @ f2af6847-4fee-4b0e-a1aa-e9b610c26d4a:160
unstable_runWithPriority @ b0246b33-3744-41db-88c8-870bb33cf944:25
Da @ f2af6847-4fee-4b0e-a1aa-e9b610c26d4a:60
ab @ f2af6847-4fee-4b0e-a1aa-e9b610c26d4a:154
Te @ f2af6847-4fee-4b0e-a1aa-e9b610c26d4a:146
(anonymous) @ f2af6847-4fee-4b0e-a1aa-e9b610c26d4a:61
unstable_runWithPriority @ b0246b33-3744-41db-88c8-870bb33cf944:25
Da @ f2af6847-4fee-4b0e-a1aa-e9b610c26d4a:60
Pg @ f2af6847-4fee-4b0e-a1aa-e9b610c26d4a:61
ha @ f2af6847-4fee-4b0e-a1aa-e9b610c26d4a:60
Dj @ f2af6847-4fee-4b0e-a1aa-e9b610c26d4a:163
unstable_runWithPriority @ b0246b33-3744-41db-88c8-870bb33cf944:25
Da @ f2af6847-4fee-4b0e-a1aa-e9b610c26d4a:60
xb @ f2af6847-4fee-4b0e-a1aa-e9b610c26d4a:162
(anonymous) @ f2af6847-4fee-4b0e-a1aa-e9b610c26d4a:162
U @ b0246b33-3744-41db-88c8-870bb33cf944:16
B.port1.onmessage @ b0246b33-3744-41db-88c8-870bb33cf944:24
b0246b33-3744-41db-88c8-870bb33cf944:24 Uncaught Error: dash_table was not found.
at Cr (caad487e-1432-4373-ac43-bb5a069ee28a:2:61243)
at _a (caad487e-1432-4373-ac43-bb5a069ee28a:2:109842)
at ja (caad487e-1432-4373-ac43-bb5a069ee28a:2:110358)
at caad487e-1432-4373-ac43-bb5a069ee28a:2:110697
at Array.forEach (<anonymous>)
at ja (caad487e-1432-4373-ac43-bb5a069ee28a:2:110644)
at Ea (caad487e-1432-4373-ac43-bb5a069ee28a:2:110098)
at Rc (caad487e-1432-4373-ac43-bb5a069ee28a:2:155015)
at Bh (f2af6847-4fee-4b0e-a1aa-e9b610c26d4a:126:456)
at Dj (f2af6847-4fee-4b0e-a1aa-e9b610c26d4a:162:476)
Metadata
Metadata
Assignees
Labels
No labels