We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9c872e commit 7147814Copy full SHA for 7147814
src/resources/jupyter/notebook.py
@@ -159,9 +159,16 @@ def notebook_execute(options, status):
159
# progress
160
progress = (not quiet) and cell.cell_type == 'code' and index > 0
161
if progress:
162
- status(" Cell {0}/{1}...".format(
163
- current_code_cell- 1, total_code_cells - 1
164
- ))
+ # get label
+ label = ''
+ source_lines = cell.source.split('\n')
165
+ label_line = next((line for line in source_lines if line.startswith('#| label:')), None)
166
+ if label_line:
167
+ label = label_line.replace('#| label:', '').strip()
168
+
169
+ status(" Cell '{0}' {1}/{2}...".format(
170
+ label, current_code_cell- 1, total_code_cells - 1
171
+ ))
172
173
# clear cell output
174
cell = cell_clear_output(cell)
0 commit comments