I was able to realize the desired result by modifying some lines in
sphinx/highlighting.py:
try:
if self.dest == 'html':
# Add '>>> ' and '... ' as appropriate if really want
interactive mode.
source_copy = ''
line_count = 0
for line in s
Thanks for the reply, John.
This is exactly what I want, and what I am doing. The problem is for
the code block to be a "cell" with an evaluate option at the end of it
when viewing through the notebook server, I have to do this:
---
"""
stuff
stuff
::
sage: first line of code
sage: secon
On Mar 1, 8:22 am, tommct wrote:
> I am using Sphinx to document my package. If I place the resulting
> html in my SAGE notebook server, I get a nice, interactive reference,
> but only when each line in my code examples are prefixed with "sage:"
> or ">>>". I would like my chunks of example code t