Re: [sage-devel] Sphinx forgets variables between doctests

2010-09-01 Thread Mike Hansen
On Wed, Sep 1, 2010 at 9:16 AM, Nathann Cohen wrote: > Any idea how to fix it ? 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 tutor

Re: [sage-devel] Sphinx forgets variables between doctests

2010-09-01 Thread David Kirkby
On 1 September 2010 17:16, Nathann Cohen wrote: > Hello everybody !!! > > I've been writing a tutorial for LP > 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 cr

[sage-devel] Sphinx forgets variables between doctests

2010-09-01 Thread Nathann Cohen
Hello everybody !!! 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 d