Jupyter

Jupyter Interview Q&A for Data Science

Notebook usage, collaboration, reproducibility, and productivity tips.

1What is Jupyter Notebook?easy
Answer: Interactive environment combining code, output, visualizations, and markdown in one document.
2What is a kernel in Jupyter?easy
Answer: Execution engine that runs code cells in a specific language/runtime.
3Why notebooks are popular in DS?easy
Answer: They support exploratory analysis, rapid prototyping, and easy sharing.
4What causes non-reproducible notebooks?medium
Answer: Running cells out of order, hidden state, and missing dependency/version control.
5How to restart kernel and run all helps?medium
Answer: It verifies notebook runs from clean state and catches hidden ordering issues.
6When use notebook vs script?medium
Answer: Notebook for exploration and communication; script/module for production pipelines.
7How to version-control notebooks?medium
Answer: Strip noisy outputs, use meaningful commits, and notebook-aware diff tools.
8What are JupyterLab extensions?easy
Answer: Plugins adding tools like code formatting, variable inspector, and git integration.
9How to manage dependencies in notebook projects?medium
Answer: Use virtual env/conda, lock files, and environment documentation.
10What is notebook parameterization?medium
Answer: Passing input parameters to run notebook as reusable pipeline component.
11How to debug notebook code?medium
Answer: Use breakpoints, logging, small test cells, and convert logic into testable functions.
12What is nbconvert used for?easy
Answer: It converts notebooks into HTML, PDF, slides, scripts, and other formats.
13Jupyter security concern?hard
Answer: Executing untrusted notebooks can run arbitrary code; isolate environments and review sources.
14Best practice for clean notebook storytelling?medium
Answer: Use clear sections, concise markdown, minimal output clutter, and final conclusions.
15One-line Jupyter summary for interviews?easy
Answer: Jupyter is the fastest way to iterate, explain, and present Data Science work reproducibly.