From posted issue #20095:
Description
I encountered unexpected UI behaviour when interacting with an embedded fg-data-profiling report in JupyterLab.
After generating and displaying a ProfileReport, clicking the report’s three-line navigation menu and selecting a section appears to affect the layout of the notebook output cell.
The issue occurs when displaying the report directly and when using prof.to_notebook_iframe(). However, exporting the same report to a standalone HTML file works normally.
Environment
-
JupyterLab: 4.4.7
-
Data Profiling package: 4.20.0
-
Import:
from data_profiling import ProfileReport -
Browser: Chrome
-
Operating system: Windows 11
Steps to reproduce
-
Load a pandas DataFrame named
df. -
Create a report:
from data_profiling import ProfileReport prof = ProfileReport(df) -
Display the report directly in a JupyterLab notebook cell by evaluating
prof. -
Click the three-line navigation menu in the report.
-
Select a section, such as Overview, Variables, Interactions, Correlations, Missing values, or Sample.
-
Observe the behaviour of the notebook output cell.
-
Repeat using:
prof.to_notebook_iframe() -
Export the report using
prof.to_file("profile.html")and open the generated HTML file in a browser for comparison.
Expected behaviour
The report’s navigation should work without causing unintended visual or layout changes to the notebook output cell.
Actual behaviour
Selecting a navigation item triggers unexpected behaviour affecting the report’s notebook output cell. The JupyterLab interface does not freeze, and the rest of the interface is not affected.
The same report works normally when opened as a standalone HTML file.
Additional observations
Changing the browser zoom level changes the report’s navigation layout: the three-line menu disappears and the navigation options become visible across the top.
It is not yet clear whether this is a responsive-layout issue, an interaction between the embedded report and JupyterLab, or a defect in the profiling package.
Request
Could the maintainers help determine whether this behaviour is expected or a bug, and advise on a possible fix?