<jupyter_start><jupyter_text>This is how we are going to approach the problem. We are going to create ONE GIANT NOTEBOOKand use the PDFExporter to do exporting.God Bless Me as I attempt this...<jupyter_code>from lib import md2nbcell, compile_code_cells
cells = compile_code_cells(title_files, docroot)
# Debugging purposes only.
for cell in cells:
    if cell["source"] == "":
        print(cell)
from lib import make_compiled_notebook
compiled_nb = make_compiled_notebook(cells, title="Network Analysis Made Simple")
from pyprojroot import here

docs_dir = here() / "docs"
from lib import to_pdf
to_pdf(compiled_nb, kernel="nams", fpath="output.pdf")<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.08516886930983847, 'fraction_numerical': 0.0014684287812041115, 'mean_word_length': 5.888888888888889, 'pattern_counts': {'":': 1, '<': 5, '<?xml version=': 0, '>': 5, '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': '187957', 'license': 'MIT', 'n_tokens_mistral': 224, 'n_tokens_neox': 212, 'n_words': 71, 'path': 'scripts/bookbuilder/prototype.ipynb', 'repo_name': 'ChrisKeefe/Network-Analysis-Made-Simple', 'size': '681'}