Underscore issue

46 views
Skip to first unread message

Aaron Tresham

unread,
Oct 22, 2016, 2:37:02 PM10/22/16
to sage-cloud
For the last two weeks, many of my students have run into problems when using the underscore in SMC.

As I understand it, Python automatically writes the last output to _, so we might compute a derivative and then do show(_) to make it look nicer. Or perhaps we do a calculation and then do N(_) to convert to a decimal.

Anyway, for about two weeks both of these have failed. show(_) produces a strange list of SMC related words, while N(_) produces an error.

Everything works fine after I do reset('_'); however, it has been necessary to do this reset each time my students use SMC.

This issue is pretty widespread, but I don't think all my students experience it (not sure about this).

Has anyone else run into this?

Aaron

P.S. Of course, it's possible to avoid using the underscore entirely. But solve(derivative(x^2+y^2==25,x),derivative(y,x)) intimidates my students enough as it is without adding a show at the front (and another set of parentheses).

William Stein

unread,
Oct 22, 2016, 3:04:03 PM10/22/16
to sage-cloud
Thanks - I've created an issue: https://github.com/sagemathinc/smc/issues/1107

--
You received this message because you are subscribed to the Google Groups "sage-cloud" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-cloud+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-cloud/720d1d38-712f-436c-974b-4d86e569c74b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Best Regards,
William Stein

CEO, SageMath, Inc.

William Stein

unread,
Oct 23, 2016, 2:15:35 PM10/23/16
to sage-cloud
Aaron,

This _ bug is now fixed (requires project restart if project is long running).

This was caused by us fixing show_identifiers() to properly only show newly defined variables.

 -- William

Aaron Tresham

unread,
Oct 24, 2016, 1:14:52 AM10/24/16
to sage-cloud
Great! Thank you. My students will be happy.


On Sunday, October 23, 2016 at 8:15:35 AM UTC-10, William Stein wrote:
Aaron,

This _ bug is now fixed (requires project restart if project is long running).

This was caused by us fixing show_identifiers() to properly only show newly defined variables.

 -- William
On Sat, Oct 22, 2016 at 12:03 PM, William Stein <wst...@sagemath.com> wrote:
Thanks - I've created an issue: https://github.com/sagemathinc/smc/issues/1107
On Sat, Oct 22, 2016 at 11:37 AM, Aaron Tresham <atre...@gmail.com> wrote:
For the last two weeks, many of my students have run into problems when using the underscore in SMC.

As I understand it, Python automatically writes the last output to _, so we might compute a derivative and then do show(_) to make it look nicer. Or perhaps we do a calculation and then do N(_) to convert to a decimal.

Anyway, for about two weeks both of these have failed. show(_) produces a strange list of SMC related words, while N(_) produces an error.

Everything works fine after I do reset('_'); however, it has been necessary to do this reset each time my students use SMC.

This issue is pretty widespread, but I don't think all my students experience it (not sure about this).

Has anyone else run into this?

Aaron

P.S. Of course, it's possible to avoid using the underscore entirely. But solve(derivative(x^2+y^2==25,x),derivative(y,x)) intimidates my students enough as it is without adding a show at the front (and another set of parentheses).

--
You received this message because you are subscribed to the Google Groups "sage-cloud" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-cloud+...@googlegroups.com.
--

Best Regards,
William Stein

CEO, SageMath, Inc.
Reply all
Reply to author
Forward
0 new messages