1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
.. invisible-code-block: python
run = []
Let's skips some stuff:
.. skip: next
After this text is a code block that goes boom, it should be skipped:
.. code-block:: python
run.append(1)
This one should run:
.. invisible-code-block: python
run.append(2)
.. skip: start
These should not:
.. code-block:: python
run.append(3)
Nor this one:
.. code-block:: python
run.append(4)
.. skip: end
But this one should:
.. code-block:: python
run.append(5)
Let's make sure things worked!
>>> print(run)
[2, 5]
|