Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Is there a way to fix my html() lines?

Recently, about 8 weeks of my work were gobbled up by the decision to make html() return a string of html rather than to display the html output.

I am using the html() function to produce html output on a teaching website through the SageCell like so:

html(Suppose we wanted to calculate $2+2=4$)

In combination with MathJaX this gives a very favourable output. I don't want to get into why it has to be html, but let's just assume I only want to display with html.

Then there is this http://trac.sagemath.org/ticket/18292

I have hundreds of uses of html() and they are all now showing deprecation warnings. I now need to use pretty_print(html()), apparrently. I won't give my opinion on the sense of this change, I just want to know how to properly fix it.

Is there a nice way to update my work? Is there a nice way of replacing all instances of html() with pretty_print(html())? I cannot do it manually, and search/replace seems to be ruled out by that close bracket.

Please forgive me if this is obvious. I'm an educator hacking my way through webdesign and I have never dealt with a large-scale deprecation like this.

Is there a way to fix my html() lines?

Recently, about 8 weeks of my work were gobbled up by the decision to make html() return a string of html rather than to display the html output.

I am using the html() function to produce html output on a teaching website through the SageCell like so:

html(Suppose html('Suppose we wanted to calculate $2+2=4$)
$2+2=4$')

In combination with MathJaX this gives a very favourable output. I don't want to get into why it has to be html, but let's just assume I only want to display with html.

Then there is this http://trac.sagemath.org/ticket/18292

I have hundreds of uses of html() and they are all now showing deprecation warnings. I now need to use pretty_print(html()), apparrently. I won't give my opinion on the sense of this change, I just want to know how to properly fix it.

Is there a nice way to update my work? Is there a nice way of replacing all instances of html() with pretty_print(html())? I cannot do it manually, and search/replace seems to be ruled out by that close bracket.

Please forgive me if this is obvious. I'm an educator hacking my way through webdesign and I have never dealt with a large-scale deprecation like this.