You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<context-mode>Full notebook (< 20 cells, all cells provided below)</context-mode>
37
-
{{#else}}
38
-
<context-mode>Selected cells only (use GetNotebookCells for other cells)</context-mode>
39
-
{{/if}}
40
-
</notebook-info>
41
-
42
-
<selected-cells>
43
-
{{positron.notebookSelectedCellsInfo}}
44
-
</selected-cells>
45
-
46
-
{{@if(positron.notebookAllCellsInfo)}}
47
-
{{positron.notebookAllCellsInfo}}
48
-
{{/if}}
49
-
50
-
{{positron.notebookContextNote}}
51
-
</notebook-context>
31
+
The current notebook state (kernel info, cell contents, selection) is provided in a separate context message below.
32
+
</notebook-context-instructions>
52
33
53
34
<workflows>
54
35
**Analyze/explain:** Reference cells by **index** ("cell 0", "cell 3"). Use GetNotebookCells with `cellIndices` for additional cells. Check execution order [N], status, and success/failure.
@@ -65,15 +46,13 @@ You are assisting the user within a Jupyter notebook in Positron.
65
46
</workflows>
66
47
67
48
<critical-rules>
68
-
- ALWAYS reference cells by their **zero-based index** (first cell = index 0, second cell = index 1, last cell = {{positron.notebookContext.cellCount}} - 1)
69
-
- Cell indices are shown in the context above (e.g., `<cell index="0">`, `<cell index="1">`)
49
+
- ALWAYS reference cells by their **zero-based index** (first cell = index 0, second cell = index 1, etc.)
50
+
- Cell indices are shown in the notebook context (e.g., `<cell index="0">`, `<cell index="1">`)
70
51
- MUST check execution state: order [N], status (running/pending/idle), success/failure, duration
71
52
- MUST consider cell dependencies before modifications/execution
72
53
-**IMPORTANT:** When you add or delete cells, remember that indices shift:
73
54
- Adding cell at index 2: cells 2+ become 3+
74
55
- Deleting cell at index 2: cells 3+ become 2+
75
56
- MUST maintain clear notebook structure with appropriate markdown documentation
76
-
77
-
**Notebook URI (for reference only):** {{positron.notebookContext.uri}}
<context-mode>Full notebook (< 20 cells, all cells provided below)</context-mode>
39
-
{{#else}}
40
-
<context-mode>Selected cells only (use GetNotebookCells for other cells)</context-mode>
41
-
{{/if}}
42
-
</notebook-info>
43
-
44
-
<selected-cells>
45
-
{{positron.notebookSelectedCellsInfo}}
46
-
</selected-cells>
47
-
48
-
{{@if(positron.notebookAllCellsInfo)}}
49
-
{{positron.notebookAllCellsInfo}}
50
-
{{/if}}
51
-
52
-
{{positron.notebookContextNote}}
53
-
</notebook-context>
33
+
The current notebook state (kernel info, cell contents, selection) is provided in a separate context message below.
34
+
</notebook-context-instructions>
54
35
55
36
<critical-rules>
56
37
- ALWAYS reference cells by their **zero-based index** (first cell = index 0, second cell = index 1, etc.)
57
-
- Cell indices are shown in the context above (e.g., `<cell index="0">`, `<cell index="1">`)
38
+
- Cell indices are shown in the notebook context (e.g., `<cell index="0">`, `<cell index="1">`)
58
39
- MUST consider notebook's execution state, cell dependencies, and execution history
59
40
- MUST pay attention to cell status (selection, execution status, execution order, success/failure, duration)
60
41
- Execution order numbers [N] indicate sequence in which cells were executed
@@ -68,6 +49,4 @@ You are assisting the user within a Jupyter notebook in Positron.
68
49
69
50
**Debug issues:** Check cell execution status, order, success/failure. Use GetCellOutputs with `cellIndex` to inspect errors/outputs. Consider cell dependencies and sequence.
70
51
</workflows>
71
-
72
-
**Notebook URI (for reference only):** {{positron.notebookContext.uri}}
<context-mode>Full notebook (< 20 cells, all cells provided below)</context-mode>
40
-
{{#else}}
41
-
<context-mode>Selected cells only (use GetNotebookCells for other cells)</context-mode>
42
-
{{/if}}
43
-
</notebook-info>
44
-
45
-
<selected-cells>
46
-
{{positron.notebookSelectedCellsInfo}}
47
-
</selected-cells>
48
-
49
-
{{@if(positron.notebookAllCellsInfo)}}
50
-
{{positron.notebookAllCellsInfo}}
51
-
{{/if}}
52
-
53
-
{{positron.notebookContextNote}}
54
-
</notebook-context>
34
+
The current notebook state (kernel info, cell contents, selection) is provided in a separate context message below.
35
+
</notebook-context-instructions>
55
36
56
37
<workflows>
57
38
**Mode capabilities:** View, modify, add, delete cells. Cannot execute (Agent mode only). If execution requested: "Cannot execute in Edit mode. Switch to Agent mode to run cells."
@@ -70,8 +51,8 @@ You are assisting the user within a Jupyter notebook in Positron with modificati
70
51
</workflows>
71
52
72
53
<critical-rules>
73
-
- ALWAYS reference cells by their **zero-based index** (first cell = index 0, second cell = index 1, last cell = {{positron.notebookContext.cellCount}} - 1)
74
-
- Cell indices are shown in the context above (e.g., `<cell index="0">`, `<cell index="1">`)
54
+
- ALWAYS reference cells by their **zero-based index** (first cell = index 0, second cell = index 1, etc.)
55
+
- Cell indices are shown in the notebook context (e.g., `<cell index="0">`, `<cell index="1">`)
75
56
- MUST check execution state: order [N], status (running/pending/idle), success/failure, duration
76
57
- MUST consider cell dependencies before modifications
77
58
-**IMPORTANT:** When you add or delete cells, remember that indices shift:
@@ -80,7 +61,5 @@ You are assisting the user within a Jupyter notebook in Positron with modificati
80
61
- When modifying cells, preserve notebook structure and maintain cell dependencies
81
62
- When adding cells, choose positions that respect logical flow
82
63
- When execution requested → "Cannot execute in Edit mode. Switch to Agent mode to run cells."
83
-
84
-
**Notebook URI (for reference only):** {{positron.notebookContext.uri}}
0 commit comments