Ask Your Question

I work in the SageMath cloud, and some lines disappear!

asked 2016-02-21 08:59:26 -0600

Erel Segal-Halevi gravatar image

updated 2016-06-06 14:46:06 -0600

FrédéricC gravatar image

I just started working on a Sage worksheet in the cloud. After writing some code, I noticed that some of the lines are missing. E.g, there is line "67" and then line "71", and the lines in between (and the code I had there) are gone.

How can I get those lines back?

edit retag flag offensive close merge delete


Is it possible that there is "code folding" going on here? I have this happen all the time once I've evaluated something, which is why I don't use SMC much - I also can never figure out where it is, though all the stuff should be there.

kcrisman gravatar imagekcrisman ( 2016-02-22 20:03:17 -0600 )edit

2 answers

Sort by » oldest newest most voted

answered 2016-02-23 00:07:09 -0600

William Stein gravatar image

If you start a cell with %html or %md then the input is hidden after you evaluate the cell. To toggle display of the input, double click on the output.

In general, you can always double click on the output to toggle display of the input. Alternatively, you can select a range of cells and click the button at the top labeled "in".

I plan to add an additional button in the output that does the same thing as double clicking. This will unfortunately clutter the interface a lot, so I've hesitated so far.

edit flag offensive delete link more


I have to say, double clicking on the OUTPUT to get the INPUT to display seems very counterintuitive to me. Can you at least have a tooltip that appears after x seconds when hovering over display? I just tried this all out and think it would be very helpful, as the "in" and "out" buttons (despite their tooltips) are not someone who is thinking in terms of "cells" would find so intuitive.

kcrisman gravatar imagekcrisman ( 2016-02-23 11:03:12 -0600 )edit

(I also finally figured out something else that has bothered me about the SMC interface which I hadn't been able to articulate before, but I'll pm you about that.)

kcrisman gravatar imagekcrisman ( 2016-02-23 11:03:37 -0600 )edit

answered 2016-02-22 11:45:12 -0600

updated 2016-02-22 11:46:48 -0600

Maybe it's just the display that is messed up. Try reloading the page using the "reload" icon or menu item or keyboard shortcut (usually ctrl-R under Linux or Windows, and cmd-R under OS X).

In case something is gone (eg deleted by mistake), you can still recover it using the "History" button at the top of the page in SageMathCloud. This opens a new SMC tab with the history for your worksheet. Use the horizontal cursor at the top to navigate in time through all the versions of your file. You can copy stuff from any version, and go paste it into your file which is still open in another tab.

If you can reproduce the bug, report it to SageMathCloud devs by emailing with details.

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

1 follower


Asked: 2016-02-21 08:59:26 -0600

Seen: 372 times

Last updated: Feb 23 '16