<jupyter_start><jupyter_text>ffmpeg  설치 고려해 볼 것 PyVirtualDisplay (Xvfb 용 Python 래퍼)를 사용 :<jupyter_code># #!/usr/bin/env python

# from pyvirtualdisplay import Display
# from selenium import webdriver

# display = Display(visible=0, size=(800, 600))
# display.start()

# # now Firefox will run in a virtual display. 
# # you will not see the browser.
# browser = webdriver.Firefox()
# browser.get('http://www.google.com')
# print browser.title
# browser.quit()

# display.stop()<jupyter_output><empty_output><jupyter_text>유사한 모듈이지만 외부 종속성이없는 xvfbwrapper 를 사용 :  이거 원도우 지원할 계획이 없덴다<jupyter_code>'''from xvfbwrapper import Xvfb

vdisplay = Xvfb()
vdisplay.start()

# launch stuff inside virtual display here

vdisplay.stop()'''<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1220159151193634, 'fraction_numerical': 0.009283819628647215, 'mean_word_length': 5.452991452991453, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '370268', 'license': 'Apache-2.0', 'n_tokens_mistral': 317, 'n_tokens_neox': 340, 'n_words': 72, 'path': 'mytest/ReinforcementLearn/test.ipynb', 'repo_name': 'probationer070/handson-ml2', 'size': '754'}