Skip to Content
DataCards 2.2.4 is released 🎉

YouTube Card

Card type: youtube

The YouTube card embeds a YouTube video inside your notebook or dashboard using an <iframe>. The YouTube video must be publicly accessible and allow embedding.

In addition to the common parameters the youtube card has the following configuration options:

NameTypeRequiredDescription
video_idstringYesThe YouTube video ID to be embedded.
fill_cardbooleanNoWhen set to True, the video will fill the entire card space including the header area. When False (default), the video will be positioned below the header.

Example

datacards.publish.card( type='youtube', video_id='bKL1HTM0ij0', label='My YouTube Video', fill_card=False, logic_view_size=(4,2) )
Last updated on