notebooks: Reorganization in preparation for editing #475
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Description
What and why?
In preparation for editing the rest of our Jupyter Notebooks, I shuffled some of our notebooks around and better defined the categories in which the notebooks live in hopes of making the user journey for finding topics and samples more intuitive.
Major changes
1. Renamed
code_samples/touse_cases/notebooks/code_samples/was moved tonotebooks/use_cases/.agents/,capital_markets/,code_explainer/,credit_risk/,model_validation/,nlp_and_llm/,ongoing_monitoring/,regression/, andtime_series/.custom_tests/notebooks, which were moved tohow_to/instead (refer to below).2. Reorganized
how_to/into topic-based subdirectoriesThe flat
notebooks/how_to/folder was reorganized into a nested structure with clear subcategories:how_to/data_and_datasets/how_to/metrics/how_to/scoring/how_to/security/how_to/tests/explore_tests/how_to/tests/run_tests/how_to/tests/run_tests/configure_tests/how_to/tests/run_tests/documentation_tests/how_to/tests/custom_tests/code_samples/custom_tests/)3. Moved images attached to notebooks into the same directories that the notebooks live in
notebooks/imagesI just shuffled them into the same (sub)directories that the notebooks live in as that is easier to associate and find.code_sharing/imagesfor now.4. Updated all internal references
code_samples/references updated touse_cases/, how-to links updated to new paths) across quickstart, tutorial, template, and code-sharing notebooks.scripts/run_e2e_notebooks.pyso the e2e test runner points to the correct new paths.notebooks/README.mdwith revised folder descriptions.Why
The previous structure had some naming/organizational issues:
code_samples/was a vague name — renaming it touse_cases/better describes that these are end-to-end examples for specific domains (credit risk, NLP/LLM, time series, etc.).how_to/was a flat folder with many unrelated notebooks at the same level — grouping them into topic-based subdirectories (data_and_datasets,metrics,tests,security, etc.) makes it much easier to navigate and find relevant guides.code_samples/but are really "how to" content about using a ValidMind feature, so they were moved tohow_to/tests/custom_tests/where they logically belong.How to test
n/a
What needs special review?
Important
Please make sure that the new categories assigned to notebooks make sense and are logical as I don't have as deep of an understanding of our notebook content as I'd like.
Dependencies, breaking changes, and deployment notes
Note
Links to the moved notebooks have also all been updated notebook side — they will be updated documentation side once this PR is approved and I am able to pull the new notebooks in.
Release notes
Release notes will go out with the documentation side PR as there will be additional navigation changes for how the notebooks are linked/structured in the docs.
Checklist