[('text',
  '\nThe Header Docstring\n====================\n\nWhen writting latex in a Python string keep in mind to escape the backslashes\nor use a raw docstring\n\n.. math:: \\sin (x)\n\nClosing this string quotes on same line',
  1),
 ('text', 'Direct first comment\nwith second line\n', 15),
 ('code', '\nimport numpy as np\n\n', 17),
 ('code', 'A = 1\n\nimport matplotlib.pyplot as plt\n\n', 21),
 ('text',
  'There is no need to always alternate between code and comment blocks\nNow there is free repetition of both\n',
  26),
 ('text', 'And a single line of hashes can split your blocks\n', 30),
 ('text', 'Latex in the comments does not need to be escaped\n\n.. math::\n   \\sin\n', 34),
 ('code',
  '\ndef dummy():\n    """This should not be part of a \'text\' block\'"""\n\n    ######################################\n    # Comment inside code to remain here\n    pass\n\n# this should not be part of a \'text\' block\n\n',
  38),
 ('text',
  '####################################################################\n\nMaking a line cut in sphinx\n',
  49),
 ('text',
  '.. warning::\n    The next kind of comments are not supported and become to hard to escape\n    so just don\'t code like this.\n\n.. code-block:: python\n\n    def dummy2():\n        """Function docstring"""\n    ####################################\n    # This comment inside python indentation\n    # breaks the block structure and is not\n    # supported\n        dummy2\n\n',
  55),
 ('code', '\n"""Free strings are not supported they remain part of the code"""\n\n', 69),
 ('text',
  'New lines can be included in you block comments and the parser\nis capable of retaining this significant whitespace to work with sphinx\n\nSo the reStructuredText headers survive\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n',
  73),
 ('code', "\n\nprint('one')\n\n", 78),
 ('text',
  'Code block separators\n##############################################################################\n Surrounding a comment line with lines of # like a block spliter also\n works and creates a new header for that comment block\n too. Nevertheless to get rich text formatting we advise to use\n RestructuredText syntax in the comment blocks.\n',
  83),
 ('code', "\nprint('two')\n", 89),
 ('code', 'B = 1\n\n', 93),
 ('text',
  "End comments\n\nThat's all folks !\n\n.. literalinclude:: plot_parse.py\n\n\n",
  96)]
