Nbtutor
Visualize Python code execution (line-by-line) in Jupyter Notebook cells.
Install / Use
/learn @lgpage/NbtutorREADME
Nbtutor
Visualize Python code execution (line-by-line) in Jupyter Notebook cells. Inspired by Online Python Tutor

To try out nbtutor, click on the "launch binder" button above and then view the examples.
Install
Note: installing directly off this repo won't work, as we don't ship the built JavaScript and CSS assets. See more about developing below.
pip
pip install nbtutor
jupyter nbextension install --overwrite --py nbtutor
jupyter nbextension enable --py nbtutor
conda
conda install -c conda-forge nbtutor
jupyter nbextension install --overwrite --py nbtutor
jupyter nbextension enable --py nbtutor
Usage (Jupyter Notebook)
First load the nbtutor IPython kernel extension at top of the Notebook by executing the following magic in a
CodeCell:
%load_ext nbtutor
Then to visualize the execute of code in a CodeCell add the following magic to the top of the CodeCell
and execute it again:
%%nbtutor
Optional Arguments
There are also optional arguments that can be used with the cell magic:
-
Reset the IPython user namespace
%%nbtutor -r/--reset -
Suppress the confirmation message from
-r/--reset%%nbtutor -r/--reset -f/--force -
Specify the maximum frame depth to visualize (default: 3)
%%nbtutor -d/--depth N -
Specify the maximum number of elements to visualize for "sequence" type objects (default: 5)
%%nbtutor --max_size S -
Step through all frames (including frames from other cells and other global scopes altogether)
%%nbtutor --step_all
Notes
- If you find a problem please feel free to submit a GitHub Issue
Develop
Please see the CONTRIBUTING and DEVELOPMENT.md guides
Related Skills
claude-opus-4-5-migration
109.8kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
model-usage
349.9kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
TrendRadar
51.0k⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。
mcp-for-beginners
15.8kThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable, and secure AI workflows from session setup to service orchestration.
