Ask Your Question

Revision history [back]

Many students of mine just place comments on the cells. Start with #, and forget about the text areas. Or don't put the #, but don't eval the cell.

I've seen other people in sagenb start code cells with %html or %latex, and put their code there. Use of %latex will require that you have latex installed, and will print an image below the cell when you eval it. Use of %html will output the code as html, which means you have to use tags like

, or otherwise your line breaks will dissappear from the output. But on the other hand, you can use $ for latex snippets, and they get compiled into jsmath.

click to hide/show revision 2
reformat, added a minor comment

Many students of mine just place comments on the cells. cells:

  • Start with #, and forget about the text areas. Or
  • don't put the #, but don't eval the cell.

    cell.
  • '''place the whole comment among trilpe quotes''' (I don't like this one, but be my guest)

I've seen other people in sagenb start code cells with %html or %latex, and put their code there. - Use of %latex will require that you have latex installed, and will print an image below the cell when you eval it. - Use of %html will output the code as html, which means you have to use tags like

, or otherwise your line breaks will dissappear from the output. But on the other hand, you can use $ for latex snippets, and they get compiled into jsmath.

click to hide/show revision 3
another attempt to reformat (no preview, many edits)

Many students of mine just place comments on the cells:

  • Start with #, and forget about the text areas.
  • don't put the #, but don't eval the cell.
  • '''place the whole comment among trilpe quotes''' (I don't like this one, but be my guest)

I've seen other people in sagenb start code cells with %html or %latex, and put their code there. there:

-
  • Use of %latex will require that you have latex installed, and will print an image below the cell when you eval it.
  • -
  • Use of %html will output the code as html, which means you have to use tags like

    , or otherwise your line breaks will dissappear from the output. But on the other hand, you can use $ for latex snippets, and they get compiled into jsmath.

click to hide/show revision 4
sorry, it is a live preview! now I'm done

Many students of mine just place comments on the cells:

  • Start with #, and forget about the text areas.
  • don't put the #, but don't eval the cell.
  • '''place the whole comment among trilpe quotes''' (I don't like this one, but be my guest)

I've seen other people in sagenb start code cells with %html or %latex, and put their code there:

  • Use of %latex will require that you have latex installed, and will print an image below the cell when you eval it.
  • Use of %html will output the code as html, which means you have to use tags like

    <p></p>, or otherwise your line breaks will dissappear from the output. But on the other hand, you can use $ for latex snippets, and they get compiled into jsmath.