Notebook
by wellcomecollection
Work with Jupyter notebooks in the wc_simd project. Use this skill to run, convert, or explore notebooks. Invoke with /notebook.
Skill Details
Repository Files
1 file in this skill directory
name: notebook description: Work with Jupyter notebooks in the wc_simd project. Use this skill to run, convert, or explore notebooks. Invoke with /notebook.
Jupyter Notebooks
This skill helps work with Jupyter notebooks in the wc_simd project.
Notebook Categories
Data Ingestion & Processing
wellcome_dataset.ipynb- Load works/images into Hive (738K works, 128K images)download_iiif_manifests.ipynb- Batch download IIIF manifests (340K files)iiif_manifests.ipynb- Process manifests for text renderings (226K works)iiif_manifest_pages.ipynb- Estimate collection size (~42M pages)
Text Analysis & NLP
alto_text.ipynb- OCR text analysis (9.8B words, 78.9% English)alto_text_chunking.ipynb- Text chunking (74M chunks) + Elasticsearch indexingalto_text_analysis.ipynb- Comprehensive NLP: NER, sentiment, topic modeling
Labels & Metadata
dn_labels.ipynb- Combined labels DataFrame (646K labels)works_labels.ipynb- Genre/subject/concept exploration
VLM Embeddings
vlm_embed.ipynb- VLM embedding analysis (537K attempted, 150K failed)vlm_embed_train_data.ipynb- AE3D latent visualization, UMAP plots
Name Reconciliation
name_rec_poc.ipynb- Name reconciliation POC with Qwen3-Embeddingnarese_evaluation.ipynb- NARESE evaluation (81.7% accuracy)
LLM & Agents
llm.ipynb- Test VLLM/VLM models (Qwen3-30B, Qwen2.5-VL)chat_simple.ipynb- LangGraph chat with memoryagent_spark_sql_toolkit.ipynb- Spark SQL agentdescribe_works.ipynb- LLM-driven SQL generation
Run Notebook
Interactive (Jupyter)
jupyter notebook notebooks/
Non-Interactive (papermill)
papermill notebooks/alto_text.ipynb output.ipynb
Convert to Script
jupyter nbconvert --to script notebooks/alto_text.ipynb
Convert to HTML
jupyter nbconvert --to html notebooks/alto_text.ipynb
Start Jupyter Server
# Standard
jupyter notebook
# With specific port
jupyter notebook --port 8889
# Lab interface
jupyter lab
Clear Outputs
jupyter nbconvert --clear-output --inplace notebooks/*.ipynb
Prerequisites
Ensure Spark is running for notebooks that use Hive tables:
cd spark_docker_s3 && docker compose up -d --build
Load environment variables:
from dotenv import load_dotenv
load_dotenv()
Related Skills
Attack Tree Construction
Build comprehensive attack trees to visualize threat paths. Use when mapping attack scenarios, identifying defense gaps, or communicating security risks to stakeholders.
Grafana Dashboards
Create and manage production Grafana dashboards for real-time visualization of system and application metrics. Use when building monitoring dashboards, visualizing metrics, or creating operational observability interfaces.
Matplotlib
Foundational plotting library. Create line plots, scatter, bar, histograms, heatmaps, 3D, subplots, export PNG/PDF/SVG, for scientific visualization and publication figures.
Scientific Visualization
Create publication figures with matplotlib/seaborn/plotly. Multi-panel layouts, error bars, significance markers, colorblind-safe, export PDF/EPS/TIFF, for journal-ready scientific plots.
Seaborn
Statistical visualization. Scatter, box, violin, heatmaps, pair plots, regression, correlation matrices, KDE, faceted plots, for exploratory analysis and publication figures.
Shap
Model interpretability and explainability using SHAP (SHapley Additive exPlanations). Use this skill when explaining machine learning model predictions, computing feature importance, generating SHAP plots (waterfall, beeswarm, bar, scatter, force, heatmap), debugging models, analyzing model bias or fairness, comparing models, or implementing explainable AI. Works with tree-based models (XGBoost, LightGBM, Random Forest), deep learning (TensorFlow, PyTorch), linear models, and any black-box model
Pydeseq2
Differential gene expression analysis (Python DESeq2). Identify DE genes from bulk RNA-seq counts, Wald tests, FDR correction, volcano/MA plots, for RNA-seq analysis.
Query Writing
For writing and executing SQL queries - from simple single-table queries to complex multi-table JOINs and aggregations
Pydeseq2
Differential gene expression analysis (Python DESeq2). Identify DE genes from bulk RNA-seq counts, Wald tests, FDR correction, volcano/MA plots, for RNA-seq analysis.
Scientific Visualization
Meta-skill for publication-ready figures. Use when creating journal submission figures requiring multi-panel layouts, significance annotations, error bars, colorblind-safe palettes, and specific journal formatting (Nature, Science, Cell). Orchestrates matplotlib/seaborn/plotly with publication styles. For quick exploration use seaborn or plotly directly.
