optuna / optuna-dashboard

Real-time Web Dashboard for Optuna.
https://optuna-dashboard.readthedocs.io/en/latest/
Other
477 stars 83 forks source link

Use tslib DataGrid in optuna-dashboard #897

Closed keisuke-umezawa closed 1 week ago

keisuke-umezawa commented 3 weeks ago

Contributor License Agreement

This repository (optuna-dashboard) and Goptuna share common code. This pull request may therefore be ported to Goptuna. Make sure that you understand the consequences concerning licenses and check the box below if you accept the term before creating this pull request.

Reference Issues/PRs

NA

What does this implement/fix? Explain your changes.

Use tslib DataGrid in optuna-dashboard

porink0424 commented 2 weeks ago

@keisuke-umezawa It appears that the error Uncaught Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. that occurs when importing DataGrid from tslib/react is caused due to the material-ui package. As a workaround, you can use named imports to resolve this: https://github.com/mui/material-ui/issues/30671#issuecomment-1613525947 .

keisuke-umezawa commented 2 weeks ago

@porink0424 Thank you for the information. I fixed code by your suggestion.