<jupyter_start><jupyter_text>Inspecting AiiDA processes<jupyter_code>%%javascript

IPython.OutputArea.prototype._should_scroll = function(lines) {
    return false;
}
%aiida
import ipywidgets as ipw
from IPython.display import clear_output
from aiida.cmdline.utils.ascii_vis import format_call_graph
import urllib.parse as urlparse
from aiidalab_widgets_base import ProcessFollowerWidget, ProgressBarWidget, ProcessReportWidget
from aiidalab_widgets_base import ProcessInputsWidget, ProcessOutputsWidget, ProcessCallStackWidget, RunningCalcJobOutputWidget
url = urlparse.urlsplit(jupyter_notebook_url)
url_dict = urlparse.parse_qs(url.query)
if 'id' in url_dict:
    pk = int(url_dict['id'][0])
    process = load_node(pk)
else:
    process = None<jupyter_output><empty_output><jupyter_text>Process inputs.<jupyter_code>display(ProcessInputsWidget(process))<jupyter_output><empty_output><jupyter_text>Process outputs.<jupyter_code>display(ProcessOutputsWidget(process))
follower = ProcessFollowerWidget(
    process,
    followers=[ProgressBarWidget(), ProcessReportWidget(), ProcessCallStackWidget(), RunningCalcJobOutputWidget()], path_to_root="../../", 
    update_interval=2)
display(follower)
follower.follow(detach=True)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.09554140127388536, 'fraction_numerical': 0.0015923566878980893, 'mean_word_length': 9.137096774193548, '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': '97523', 'license': 'MIT', 'n_tokens_mistral': 409, 'n_tokens_neox': 401, 'n_words': 65, 'path': 'notebooks/process.ipynb', 'repo_name': 'danielhollas/aiidalab-widgets-base', 'size': '1256'}