2012/7/10 Paulo César Pereira de Andrade
<paulo.cesar.pereira.de.andrade(a)gmail.com>:
2012/7/7 Paulo César Pereira de Andrade
<paulo.cesar.pereira.de.andrade(a)gmail.com>:
http://fedorapeople.org/~pcpa/rawhide-sage-notebook2.png
Still need to figure out why cannot interact/change the examples, they are not
supposed to be static...
This should not be easy to convince to be added to upstream sphinx or
as a patch to fedora sphinx, so, not sure how to handle it... It is required
to:
---%<---
diff -ur src/sphinx/highlighting.py src.patched/sphinx/highlighting.py
--- src/sphinx/highlighting.py 2010-08-11 17:17:48.000000000 +0200
+++ src.patched/sphinx/highlighting.py 2010-11-28 12:04:44.068642703 +0100
@@ -161,7 +161,7 @@
# find out which lexer to use
if lang in ('py', 'python'):
- if source.startswith('>>>'):
+ if source.startswith('>>>') or source.startswith('sage:
'):
# interactive session
lexer = lexers['pycon']
else:
---%<---
but then examples in "non fast/static" documentation become interactive,
example:
http://fedorapeople.org/~pcpa/rawhide-sage-notebook3.png
In the screenshot above, it actually was showing an animated plot :-)
I will cross open a fedora bug report and sagemath trac to see if a
reasonable solution can be found for the sagemath sphinx patch
on a system wide sphinx install...
sagemath 5.2 alpha0 also requires a few new packages that I just
made
review requests:
python-flask-silk
https://bugzilla.redhat.com/show_bug.cgi?id=839098
python-flask-autoindex
https://bugzilla.redhat.com/show_bug.cgi?id=839097
python-flask-babel
https://bugzilla.redhat.com/show_bug.cgi?id=839071
other python-flask* required packages were already in rawhide.
Paulo
Paulo