<jupyter_start><jupyter_text>Images<jupyter_code>import requests

from IPython.display import display, Image<jupyter_output><empty_output><jupyter_text>display by url<jupyter_code>base_url = 'https://www.bing.com'
img_url = requests.get(f'{base_url}/HPImageArchive.aspx?format=js&idx=0&n=1').json()['images'][0]['url']
img_url = f'{base_url}{img_url}'
display(Image(url=img_url, width=320, height=240))<jupyter_output><empty_output><jupyter_text>display by filename<jupyter_code>display(Image(filename='static/img_01.jpeg'))<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1624548736462094, 'fraction_numerical': 0.019855595667870037, 'mean_word_length': 15.323529411764707, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, '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': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '580552', 'license': 'BSD-2-Clause', 'n_tokens_mistral': 224, 'n_tokens_neox': 216, 'n_words': 19, 'path': 'notebooks/image.ipynb', 'repo_name': 'tanbro/mkdocs-nbconvert', 'size': '554'}