[IPython-dev] notebook questions
Fri Sep 16 18:35:11 CDT 2011
On Fri, Sep 16, 2011 at 15:50, Jason Grout <email@example.com>wrote:
> On 9/16/11 3:37 PM, Chris Kees wrote:
> > Hi,
> > I updated my source on the notebook after I read Fernando's post. Nice
> > work! Couple of questions:
> > Is there a way to use reST in the text boxes? It seems like it sort of
> > works but doesn't get the ::
> > If I put the notebook safely inside our firewall, would it be
> > reasonable to just let 5-10 people use the same server or do you
> > foresee problems down the road? I've set up a sage server partly for
> > that purpose, but having the ipython notebook available could have
> > some advantages. For example, we're running a computational mechanics
> > seminar where it would be nice to share some simple mpi programs, say
> > in the 8-16 processor range. I don't think we can do that in sage yet,
> > right?
> (answering the Sage question here...) What do you mean when you say
> "share some simple mpi programs"? Do you mean running the mpi programs
> from the command line, or sharing the C code files, or using mpi4py to
> run the programs? If you can do it in python or on the command line,
> you can likely do it in Sage. Feel free to email the sage-support list;
> I'm sure we can help you there.
> > In the docs, it talks about the python roundtrip not being guaranteed.
> > What about a sage round trip capability for the notebooks?
> I think that might be possible, though it would require ipython being
> able to have "text cells" with arbitrary html, rather than just
> markdown. The Sage notebook format looks something like:
since (almost) arbitrary html is valid markdown, I don't expect a problem
there. The first notebook draft had html text cells, but we never found any
HTML we wanted to use that didn't work as-is in markdown, so we disabled it
to prevent unnecessary clutter. If there are real HTML use cases for which
the markdown transforms html inappropriately, we can easily turn it back on.
> arbitrary html
> arbitrary html
> arbitrary html
That seems simple enough, though after playing with a few sage worksheets,
it looks like if you make an HTML cell, it is indistinguishable from a code
cell in the exported file. Presumably, IPython would only want the
Python/Sage cells as code cells, whereas all the latex, text, and html cells
should come out as text. If Sage doesn't distinguish between these in the
file-format, then I'm not sure what we should do. Detecting the language
based purely on content will certainly not be acceptable.
But the fact that Sage can have HTML that is part of a cell, as well as HTML
that is *not* part of a cell makes it clear that a roundtrip will not result
in an identical notebook. It may have the same content, but it will have
changed structure at least partly. This is what we mean when we talk about
lacking roundtrip support - not that you can't import to/export from a
format, but that doing so is not guaranteed to preserve the entire document
> Of course, sage-specific things like interacts wouldn't work. (However,
> over the summer we've written a version of interacts that is independent
> of Sage and relies instead on the new ipython messaging protocol; it's
> part of the single-cell server project:
> Jason Grout
> IPython-dev mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev