<jupyter_start><jupyter_text>Vitessce Widget Tutorial  Using an existing view config dict  1. Import dependenciesWe need to import the `VitessceConfig` class.<jupyter_code>from vitessce import VitessceConfig<jupyter_output><empty_output><jupyter_text>2. Import config of interest as a dictThe Vitessce config at its lowest level is a JSON object or a Python `dict` that specifies a layout for the Vitessce components will be rendered in the widget. These components may be scatterplots, spatial plots, heatmaps, or control components. The config also describes the datasets and files that will be visualized.The `vitessce` package provides helper functions and classes to simplify the process of defining Vitessce configs. Those functions are demonstrated in the other notebooks. The helper functions are intended to make visualization of local datasets easy. However, in this case, we are importing a config that has been pre-defined in the file `example_configs.py`, in which the dataset being visualized is stored remotely in AWS S3 (rather than locally).<jupyter_code>from example_configs import dries as dries_config<jupyter_output><empty_output><jupyter_text>3. Create the Vitessce widgetCreate the widget by creating a new config instance using the `VitessceConfig.from_dict` static method, then calling the config's `.widget()` method.Render the widget by placing the widget variable on its own line at the end of the notebook cell.<jupyter_code>vc = VitessceConfig.from_dict(dries_config)
vw = vc.widget()
vw<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.04848093083387201, 'fraction_numerical': 0.002585649644473174, 'mean_word_length': 6.068493150684931, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '81927', 'license': 'MIT', 'n_tokens_mistral': 416, 'n_tokens_neox': 403, 'n_words': 196, 'path': 'docs/notebooks/widget_from_dict.ipynb', 'repo_name': 'sehilyi/vitessce-python', 'size': '1547'}