원클릭으로
nb
Read, edit, and manage Jupyter notebook (.ipynb) cells. Use when working with .ipynb files instead of raw read/edit.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Read, edit, and manage Jupyter notebook (.ipynb) cells. Use when working with .ipynb files instead of raw read/edit.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | nb |
| description | Read, edit, and manage Jupyter notebook (.ipynb) cells. Use when working with .ipynb files instead of raw read/edit. |
When working with .ipynb files, always use nb commands instead of read/edit. Raw .ipynb files are JSON — read shows thousands of lines of noise, and edit requires matching exact JSON strings.
The nb CLI operates on cells by index, showing clean source content.
All commands: python3 {baseDir}/nb.py <command> [args]
python3 {baseDir}/nb.py create <path> # empty notebook
python3 {baseDir}/nb.py create <path> --title "# My Notebook" # with title cell
python3 {baseDir}/nb.py view <path>
Shows all cells: index, type (code/mark/raw), output indicator (📤), line count, first-line preview.
python3 {baseDir}/nb.py read <path> <cell_idx> # plain
python3 {baseDir}/nb.py read <path> <cell_idx> --nums # with line numbers
Always use --nums before editing to get accurate line numbers.
python3 {baseDir}/nb.py output <path> <cell_idx>
python3 {baseDir}/nb.py search <path> "<pattern>"
Shows matching cells with line numbers of matches.
String replace (best for small targeted changes):
python3 {baseDir}/nb.py str-replace <path> <cell_idx> "<old>" "<new>"
Replace lines (best for replacing blocks, 1-based inclusive):
python3 {baseDir}/nb.py replace-lines <path> <cell_idx> <start> <end> "<new_content>"
Insert line (0 = before first line, 1 = after first line):
python3 {baseDir}/nb.py insert-line <path> <cell_idx> <line_num> "<content>"
Delete lines (1-based, inclusive):
python3 {baseDir}/nb.py delete-lines <path> <cell_idx> <start> [end]
Replace entire cell:
python3 {baseDir}/nb.py replace <path> <cell_idx> "<content>"
python3 {baseDir}/nb.py add <path> "<content>" --after <idx> --type code
python3 {baseDir}/nb.py add <path> "<content>" --before <idx> --type markdown
python3 {baseDir}/nb.py delete <path> <cell_idx>
Type defaults to code. Omitting --after/--before appends to end.
nb view to see notebook structurenb read <idx> --nums to inspect a cell with line numbersstr-replace, replace-lines, insert-line, or delete-linesadd/delete — re-run view if needed$'...' syntax