-
Notifications
You must be signed in to change notification settings - Fork 13
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
Panel and SplitPanel do not always render initially #129
Comments
It looks like it may be related to JupyterV4.# as it displays correctly with V3. |
Thanks @fleming79 for investigating. Not sure what changed in JupyterLab 4 that would cause this issue. Maybe there is something relevant in https://jupyterlab.readthedocs.io/en/latest/extension/extension_migration.html#jupyterlab-3-x-to-4-x, and we need to update |
It looks like JupyterLab 4 switched to MathJax3 (jupyterlab/jupyterlab#13877). Looking in the source for ipywidgets
The mathJax upgrade notes here explain that |
So maybe it should be fixed in ipywidgets directly? |
Hi! We are also seeing this with the simplest IntSlider panel as well, although the MathJax error isn't showing up (that we can see, at least.) We did see some errors about |
i thinks it;s related to CSS or layout, so if you set css through Layout it should do the work |
Hi, I am facing the same issue but I have no console error of any kind. I can add to all of this:
|
I experienced this issue as well but worked around it by moving the Panel creation logic into a JupyterLab extension and only using ipylab to call a command to run the extension from a notebook. app = JupyterFrontEnd()
app.commands.execute('my-command', {
'arg1': arg1,
'arg2': arg2,
'insertMode': 'tab-after',
}) Since ipylab is intended as a bridge between notebooks and the JupyterLab UI, this keeps the bridge as short as possible. It won't work for every use case (e.g. if you're using ipywidgets in your Panel). |
This may be a dead issue now, but I was still seeing it and I was able to fix it with: view = w.children[0].children[1]
p = ipylab.Panel(children = [view])
p.layout.min_height = '100%'
p.layout.width = '100%'
app.shell.add(p, 'main') This works for my particular use case, but may not for others. I was finding that when using |
The example is running from recent WinPython distribution (Jupyterlab 4.0.4), but the same issue happens for me using a conda dev environment running on WSL. The JupyterLite example works correctly, but everywhere else I've tried this has similar behaviour to that shown below.
Running through
widgets.ipynb
from the examples folder code. The panels appear, but the contents do not show up.Dragging the panels about can make the contents appear.
The text was updated successfully, but these errors were encountered: