Ask Your Question
1

how to enter comments?

asked 2014-01-08 13:02:13 -0500

anonymous user

Anonymous

I'm making an assumption that this is even possible, as I cannot find anything about it in the documentation. How does one enter comments (eg just text that is not to be evaluated) into a worksheet?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
4

answered 2014-01-08 13:08:05 -0500

calc314 gravatar image

You can enter comments in an execution cell by beginning the line with a #.

You can open a text cell by hovering your mouse between cells until you see a blue line and shift-clicking.

In Sage Math Cloud, you can use markdown commands by starting the cell with %md and then using markdown commands.

edit flag offensive delete link more

Comments

Thank you! Can you point out to me where this is documented so I can see where I went wrong in missing it?

draeath gravatar imagedraeath ( 2014-01-08 13:35:11 -0500 )edit

Sage is based on Python, and # is the comment character in Python.

niles gravatar imageniles ( 2014-01-09 01:47:40 -0500 )edit

SageMathCloud is extremely new (first basic release was 8 months ago) and many things aren't documented yet. In particular, I don't think %md mode is documented yet. You didn't go wrong by any fault of your own.

William Stein gravatar imageWilliam Stein ( 2014-01-09 23:19:29 -0500 )edit

It is more documented now. But there should be some icon to click at the top too.

kcrisman gravatar imagekcrisman ( 2014-08-01 21:26:16 -0500 )edit
0

answered 2014-01-24 09:25:43 -0500

Ken Levasseur gravatar image

I interpret the answer above for SageMathCloud to be that you evaluate the expression

%md This is a comment.

To get a "text cell" containing "This is a comment"

That doesn't work for me. Is there something similar to Sage where you shift-click for formatted text?

edit flag offensive delete link more

Comments

Never mind! I just realized that the file I had imported into my project didn't have the .sagews extension. When I added it, %md worked fine.

Ken Levasseur gravatar imageKen Levasseur ( 2014-01-25 02:14:53 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2014-01-08 13:02:13 -0500

Seen: 3,249 times

Last updated: Jan 24 '14