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

Ipywidget bokeh messes up jupyter lab css #65

Open
Tracked by #91
govinda18 opened this issue Nov 1, 2022 · 3 comments
Open
Tracked by #91

Ipywidget bokeh messes up jupyter lab css #65

govinda18 opened this issue Nov 1, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@govinda18
Copy link
Contributor

Ipywidget bokeh does not seem to work well with jupyter lab's css. Whenever it is loaded on the page with lab's css, it messes up the css of the lab. Here is a simple reproducer:

import panel as pn
import ipywidgets_bokeh
import ipywidgets as w
pn.extension()
pn.Row(ipywidgets_bokeh.IPyWidget(widget=w.HTML("asd")))

image

Note that the above is just for a reproducer. My use case requires me to load some javascript extensions I need dynamically on the page. For now, a workaround for me is to to not load it when I am in an ipynb environment.

@philippjfr
Copy link
Contributor

In Panel docs we warn about this and ask you to load ipywidgets via the extension (i.e. with pn.extension('ipywidgets')) so that we can appropriately dispatch to the appropriate renderer depending on the environment we are running in.

@govinda18
Copy link
Contributor Author

In Panel docs we warn about this and ask you to load ipywidgets via the extension (i.e. with pn.extension('ipywidgets')) so that we can appropriately dispatch to the appropriate renderer depending on the environment we are running in.

Yep, I remember seeing that. My issue was actually related to holoviz/panel#4074. With the workaround I mentioned in the issue, ipywidgets-bokeh will always load on the page

@ndmlny-qs
Copy link
Collaborator

@govinda18 I am going to work on #67 to see if updating ipywidgets_bokeh to use Bokeh 3.0 fixes these CSS issues. If it doesn't, then I'll try to figure out the culprit and will update this issue with anything I find out.

@ndmlny-qs ndmlny-qs self-assigned this Jan 19, 2023
@ndmlny-qs ndmlny-qs added the bug Something isn't working label Jan 19, 2023
@ndmlny-qs ndmlny-qs mentioned this issue Apr 6, 2023
21 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants