Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Restore some functionality of the sphinx directive. #11402
The issue is in 2 part, before IPython 7.0 the input splitter was
The second part is that because of this, we had to be a bit adressive of
I hope that this fixes that. I have another fix in mind that count (and
It seems like exceptions fail the build. With the same setup from #11362,
# index.rst Welcome to test's documentation! ================================ .. ipython:: python def f(x): x = 2 raise ValueError('bad') return x f(2) .. ipython:: python print('hi') Testing
I I include
Yes but that was changed explicitley in #11321 (should maybe have been better documented) to actually start to catch regression in documentation....
I can try to make it configurable though. One other discussion was to make
Oct 18, 2018
No problem, restructured text can be complicated at time.…
On Sun, Oct 21, 2018, 10:49 Luciana da Costa Marques < ***@***.***> wrote: *@LucianaMarques* commented on this pull request. ------------------------------ In docs/source/development/ipython_directive.rst <#11402 (comment)>: > + ***@***.*** + + execute the ipython input block, but suppress the input and output + block from the rendered output. Also, can be applied to the entire + ``.. ipython`` block as a directive option with ``:suppress:``. + ***@***.*** + + insert the input and output block in verbatim, but auto-increment + the line numbers. Internally, the interpreter will be fed an empty + string, so it is a no-op that keeps line numbering consistent. + Also, can be applied to the entire ``.. ipython`` block as a + directive option with ``:verbatim:``. + ***@***.*** OUTFILE [IMAGE_OPTIONS] Hey Carreau, I think I had this doubt because I was not familiar with reStructureText until today. Thank you for your reply! — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#11402 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAUez1fiY8gzr6ON8z8Rv6StIRy3XyYRks5unLONgaJpZM4XdZXN> .