Skip to content

Problem with split panel on Mac #142

@kolibril13

Description

@kolibril13

In JLab Version 4.1.8, on Mac I get a bug when running the below script:

from ipylab import JupyterFrontEnd, SplitPanel
from ipywidgets import IntSlider

app = JupyterFrontEnd()

split_panel = SplitPanel()

slider_ctrl = IntSlider(min=0, max=100, step=1, description='Slider Control:',)


# add the widgets to the split panel
split_panel.children = [
    slider_ctrl
]

app.shell.add(split_panel, 'main', { 'mode': 'split-right' })
split_panel

split_panel.title.label = 'A SplitPanel'
split_panel.title.icon_class = 'jp-PythonIcon'
split_panel.title.closable = True
split_panel.orientation = 'vertical'

The panel just stays grey when I run the script.
Only when I move the panel to the left or when I zoom in and out the widget appears.

That happens both in google chrome and in safari on local jupyter.

Screen.Recording.2024-06-06.at.22.48.33.mov

Interestingly, this bug does not occur when running this script on https://ipylab.readthedocs.io/en/latest/lite/lab/?path=widgets.ipynb

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions