sphinxcontrib-jupyter icon indicating copy to clipboard operation
sphinxcontrib-jupyter copied to clipboard

Indentation with Non-Executing Code

Open arnavs opened this issue 7 years ago • 1 comments
trafficstars

See below for an example in the Julia Essentials lecture. It appears the no-execute flag puts an extra level of indentation on the text. Just wanted to confirm that this is desired behavior.

Code

.. code-block:: julia

    typeof(x)


An immutable object is one that cannot be altered once it resides in memory

In particular, tuples do not support item assignment:

.. code-block:: julia
    :class: no-execute

    x[1] = 42

Output

screen shot 2018-08-28 at 10 13 39 am

cc: @mmcky, etc.

arnavs avatar Aug 28 '18 17:08 arnavs

@arnavs it should add it as markdown in the notebook but probably not indented.

mmcky avatar Jul 22 '19 01:07 mmcky