<jupyter_start><jupyter_text>Screenshot Viewer<jupyter_code># SCREENSHOT VIEWER

# DEPENDENCIES AND INSTALLASIONS

# The code below is commented out.  If you need to run it:
#     - Select all below and toggle comments.
#     - On Windows use Ctl + /

# !pip install ipywidgets
# !jupyter nbextension enable --py widgetsnbextension
# conda install -c anaconda ipywidgets
"""
IMPORT NECESSARY LIBRARIES
"""
import pandas as pd
import os
import ipywidgets
from IPython.core.display import display, HTML
from IPython.display import Image
from ipywidgets import interact, IntSlider, interactive, widgets, interact_manual,HBox,fixed
from IPython.display import HTML
import warnings
warnings.filterwarnings('ignore')

pd.set_option('display.max_rows' , 1000)
pd.set_option('display.max_columns' , 1000)

display(HTML("<style>.container { width:100% !important; }</style>"))

layout = widgets.Layout(width='400px', height='30px')
pd.options.display.float_format = "{:.2f}".format
from pandas.plotting import register_matplotlib_converters
register_matplotlib_converters()
%matplotlib inline


HTML('''<script>
code_show=true; 
function code_toggle() {
 if (code_show){
 $('div.input').hide();
 } else {
 $('div.input').show();
 }
 code_show = !code_show
} 
$( document ).ready(code_toggle);
</script>
<form action="javascript:code_toggle()"><input type="submit" value="SHOW/HIDE TOGGLE"></form>''')
import glob
images = glob.glob("images/*")
images = [img.split('\\')[1] for img in images]
# If you are setting up the Notebook to use for the first time,
# you may want to uncomment the code below to see your list of
# images in your folder

# images
@interact
def display_image(files = images):
    path = './images/'
    display(Image(path+files , width=800, height=800))<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12750556792873052, 'fraction_numerical': 0.013363028953229399, 'mean_word_length': 5.510869565217392, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, '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': '548310', 'license': 'MIT', 'n_tokens_mistral': 619, 'n_tokens_neox': 590, 'n_words': 166, 'path': 'ViewScreenShots.ipynb', 'repo_name': 'vjmiyagi/view_screenshots', 'size': '1796'}