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

Databricks compatibility #536

Open
xiaobigmeow opened this issue Aug 18, 2024 · 3 comments
Open

Databricks compatibility #536

xiaobigmeow opened this issue Aug 18, 2024 · 3 comments

Comments

@xiaobigmeow
Copy link

Is it possible to run ipydatagrid in Databricks?

When I tried to run a simple example, I get an error: Error displaying widget: Cannot read properties of undefined (reading 'length')

@martinRenou
Copy link
Member

Thanks for opening an issue, which simple example have you tried?

Looking at the error message, you may have found an actual bug in the ipydatagrid TypeScript code

@xiaobigmeow
Copy link
Author

df = pd.DataFrame(
    {
        "A": 1.0,
        "B": pd.Timestamp("20130102"),
        "C": pd.Series(1, index=list(range(4)), dtype="float32"),
        "D": pd.Categorical(["test", "train", "test", "train"]),
        "E": "foo",
    }
)

datagrid = ipydatagrid.DataGrid(df)
datagrid

@andrewgross
Copy link

andrewgross commented Oct 17, 2024

I ran in to issues on Databricks with 1.3.0+ as well. Rendering any pandas dataframe gives:

Error displaying widget: e.data[i].value is undefined

Up through 1.2.1 worked fine.

1.3.0:

image

1.2.1

image

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

No branches or pull requests

3 participants