Ask Your Question
2

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

asked 2016-02-21 15:59:26 +0200

Erel Segal-Halevi gravatar image

updated 2016-06-06 21:46:06 +0200

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

Comments

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-23 03:03:17 +0200 )edit

2 Answers

Sort by » oldest newest most voted
1

answered 2016-02-22 18:45:12 +0200

slelievre gravatar image

updated 2016-02-22 18:46:48 +0200

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 help@sagemath.com with details.

edit flag offensive delete link more
1

answered 2016-02-23 07:07:09 +0200

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

Comments

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 18:03:12 +0200 )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 18:03:37 +0200 )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

1 follower

Stats

Asked: 2016-02-21 15:59:26 +0200

Seen: 841 times

Last updated: Feb 23 '16