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

[BUG] When viewing a json file in artifact as a table, scrollbar is not available. #11878

Closed
adi250491 opened this issue May 1, 2024 · 2 comments
Labels
area/uiux Front-end, user experience, plotting, JavaScript, JavaScript dev server bug Something isn't working

Comments

@adi250491
Copy link

Willingness to contribute

No. I cannot contribute a bug fix at this time.

MLflow version

'2.11.3'

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10
  • Python version: Python 3.11.9

Describe the problem

When viewing a JSON artifact that has been logged to mlflow using mlflow.log_table function, The scroll-bar to scroll the table vertically does not show.
When viewing the JSON file as raw JSON, the scroll bar is available to scroll through the entire file.

Steps to reproduce the bug

Create a demo pandas dataframe and log it to mlflow as a table
`
mlflow.start_run()

dft = pd.DataFrame({
'A' : ['spam', 'eggs', 'spam', 'eggs'] * 6,
'B' : ['alpha', 'beta', 'gamma'] * 8,
'D' : np.random.randn(24),
'E' : np.random.randint(2,10,24),
'F' : [np.random.choice(['rand_1', 'rand_2', 'rand_4', 'rand_6']) for i in range(24)],
})

mlflow.log_table(dft,
artifact_file='dummy.json')

mlflow.end_run()
`

  • Then go to the mlflow UI dashboard and view the table in the Artifacts tab.

  • Scroll bar is absent when viewing the JSON as a table

  • table

  • Scroll bar is present when viewing the JSON with View as Table checkbox deselected
    json

Code to generate data required to reproduce the bug

mlflow.start_run()

dft = pd.DataFrame({
'A' : ['spam', 'eggs', 'spam', 'eggs'] * 6,
'B' : ['alpha', 'beta', 'gamma'] * 8,
'D' : np.random.randn(24),
'E' : np.random.randint(2,10,24),
'F' : [np.random.choice(['rand_1', 'rand_2', 'rand_4', 'rand_6']) for i in range(24)],
})

mlflow.log_table(dft,
artifact_file='dummy.json')

mlflow.end_run()

Is the console panel in DevTools showing errors relevant to the bug?

NO

Does the network panel in DevTools contain failed requests relevant to the bug?

NO

@adi250491 adi250491 added area/uiux Front-end, user experience, plotting, JavaScript, JavaScript dev server bug Something isn't working labels May 1, 2024
Copy link

github-actions bot commented May 9, 2024

@mlflow/mlflow-team Please assign a maintainer and start triaging this issue.

@adi250491
Copy link
Author

Bug fixed when I updated to version 2.13.0. Issue can be closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/uiux Front-end, user experience, plotting, JavaScript, JavaScript dev server bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant