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

Ipython display widget no longer works with new release #5168

Closed
nicho2 opened this issue Jun 23, 2023 · 1 comment · Fixed by #5217
Closed

Ipython display widget no longer works with new release #5168

nicho2 opened this issue Jun 23, 2023 · 1 comment · Fixed by #5217
Milestone

Comments

@nicho2
Copy link

nicho2 commented Jun 23, 2023

We use the YouTubeVideo widget from Ipython

from IPython.display import YouTubeVideo

with the panel version 0.14, it was going well (panel serve final_notebook.ipynb --port 8080 --show --autoreload)

ex: there is iframe in the html cade

<iframe width="100%" height="540px" src="https://www.youtube.com/embed/Daolqfjen94?autoplay=1" frameborder="0" allowfullscreen="" allow="autoplay"></iframe>

now with the release 1.1.1

we have an image in the html code

(the display in jupyter lab is always good.)

@philippjfr philippjfr added this to the v1.2.0 milestone Jun 23, 2023
@philippjfr
Copy link
Member

Seems like YouTubeVideo has both _repr_jpeg_ and _repr_html_ methods and pn.pane.JPEG returns a higher precedence than pn.pane.HTML does. For now you can just do:

yt = pn.pane.HTML(YouTubeVideo('https://www.youtube.com/embed/Daolqfjen94?autoplay=1'))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants