<jupyter_start><jupyter_text>from IPython.display import HTML YoutubeHTML('') VimeoHTML('BAXTER DURY - CLAIRE (Dir Cut) from <NAME> on Vimeo.')<jupyter_code># General stuff.

from IPython.display import IFrame

def yt(url, width=560, height=None):
    """
    Function to embed a youtube movie in a notebook
    """
    
    if height is None:
        height = (9/16*width)
    
    url = url.replace("youtu.be", 'youtube.com/embed')
    
    embed_code = """
    <iframe
        width="{0}"
        height="{1}"
        src="{2}"
        frameborder="0"
        allowfullscreen>
    </iframe>
    """.format(width, height, url)
    
    return HTML(embed_code)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1389290882778582, 'fraction_numerical': 0.01447178002894356, 'mean_word_length': 2.760869565217391, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '194012', 'license': 'MIT', 'n_tokens_mistral': 252, 'n_tokens_neox': 236, 'n_words': 55, 'path': 'note/embedding.ipynb', 'repo_name': 'eliavw/s3-2019', 'size': '697'}