<jupyter_start><jupyter_text>Adjust Width Height Autosize<jupyter_code>import warnings
import numpy as np
import holoviews as hv
from holoext.xbokeh import Mod

warnings.filterwarnings('ignore')  # bokeh deprecation warnings
hv.extension('bokeh')
# http://holoviews.org/reference/elements/bokeh/Bars.html

data = [('one', 8),('two', 10), ('three', 16), ('four', 8), ('five', 4), ('six', 1)]
bars = hv.Bars(data, hv.Dimension('Car occupants'), 'Count')
bars_split_two = bars[['one', 'two', 'three']] + bars[['four', 'five', 'six']]
bars_split_four = (bars[['one', 'two', 'three']] + bars[['four', 'five', 'six']] +
                   bars[['one', 'two', 'three']] + bars[['four', 'five', 'six']]).cols(2)<jupyter_output><empty_output><jupyter_text>Readjusts to fit subplots automatically<jupyter_code>Mod().apply(bars_split_two)<jupyter_output><empty_output><jupyter_text>Works with multiple rows!<jupyter_code>Mod().apply(bars_split_four)<jupyter_output><empty_output><jupyter_text>Disable autosize<jupyter_code>Mod(autosize=False).apply(bars_split_two)<jupyter_output><empty_output><jupyter_text>Adjust it yourself!<jupyter_code>Mod(width=725, height=1000).apply(bars_split_two)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.18527708850289495, 'fraction_numerical': 0.013234077750206782, 'mean_word_length': 9.0, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '282659', 'license': 'MIT', 'n_tokens_mistral': 479, 'n_tokens_neox': 451, 'n_words': 71, 'path': 'docs/examples/adjust_width_height_autosize.ipynb', 'repo_name': 'ahuang11/HoloExt', 'size': '1209'}