File tree Expand file tree Collapse file tree 1 file changed +27
-6
lines changed Expand file tree Collapse file tree 1 file changed +27
-6
lines changed Original file line number Diff line number Diff line change @@ -177,12 +177,12 @@ produces:
177
177
178
178
You may also add *line numbers * to the source code with ``:linenos: ``::
179
179
180
- .. jupyter-execute::
181
- :linenos:
180
+ .. jupyter-execute::
181
+ :linenos:
182
182
183
- print('A')
184
- print('B')
185
- print('C')
183
+ print('A')
184
+ print('B')
185
+ print('C')
186
186
187
187
produces:
188
188
@@ -193,6 +193,26 @@ produces:
193
193
print('B')
194
194
print('C')
195
195
196
+
197
+ To add *line numbers from a specific line * to the source code, use the
198
+ ``lineno-start `` directive::
199
+
200
+ .. jupyter-execute::
201
+ :lineno-start: 7
202
+
203
+ print('A')
204
+ print('B')
205
+ print('C')
206
+
207
+ produces:
208
+
209
+ .. jupyter-execute ::
210
+ :lineno-start: 7
211
+
212
+ print('A')
213
+ print('B')
214
+ print('C')
215
+
196
216
You may also emphasize particular lines in the source code with ``:emphasize-lines: ``::
197
217
198
218
.. jupyter-execute::
@@ -379,4 +399,5 @@ jupyter_sphinx_linenos
379
399
380
400
jupyter_sphinx_continue_linenos
381
401
382
- Whether to show continuous line numbering in all ``jupyter-execute `` sources.
402
+ Whether to continue line numbering from previous cell in all ``jupyter-execute ``
403
+ sources.
You can’t perform that action at this time.
0 commit comments