QuantEcon / sphinxcontrib-jupyter

A Sphinx Extension for Generating Jupyter Notebooks
BSD 3-Clause "New" or "Revised" License
76 stars 23 forks source link

Indentation with Non-Executing Code #76

Open arnavs opened 6 years ago

arnavs commented 6 years ago

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.

mmcky commented 5 years ago

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