I've been writing a tutorial for LP, and I hope the Graph tutorial
will follow, but I have a problem with doctests... Something like that
:
sage: g = Graph()
Now we add a vertex ::
sage: g.add_vertex(1)
does not work as Sphinx forgets the definition of "g" between
doctests. It works fine when methods are doctested, but for some
reason a .rst file does not behave the same way :-/
Any idea how to fix it ?
Thankssssss !!!
Nathann
> Nathann
It would be good if you could update that bit of the documentation
that tells one how to load the optional GPLK package, when GLPK is now
a standard package. If you have not created a ticket for that, I think
it would be wise to do so.
I hope you enjoyed your backpacking!
Your addition of the URL for the Cliquer package got merged in the
latest rc0 - but believe it or not, it still needed still further work
after I'd positively reviewed it. (Shame on me). That took a bit more
sorting out. Mitesh reviewed my changes
Dave
You need to use ".. link" to connect a doctest block with the one
above it. For example,
{{{
.. link
::
sage: d.items()
[(1, 5), ('sage', 17), (Integer Ring, Finite Field of size 7)]
}}}
Look in the tutorial .rst files for tons of examples.
--Mike