ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 28 Jan 2016 09:37:48 -0600About %html in Notebookhttp://ask.sagemath.org/question/32362/about-html-in-notebook/ From SageMath 6.10, the html notebook cell cann't work.
The following message is shown:
"Traceback (click to the left of this block for traceback) ... TypeError: eval() got multiple values for keyword argument 'locals' "
Perhaps the reason for this is that function html() has been updated.
How will I solve this problem.
By the way, is the markdown cell available in future versions of Sage?Thu, 28 Jan 2016 09:22:56 -0600http://ask.sagemath.org/question/32362/about-html-in-notebook/Answer by kcrisman for <p>From SageMath 6.10, the html notebook cell cann't work. <br/>
The following message is shown:
"Traceback (click to the left of this block for traceback) ... TypeError: eval() got multiple values for keyword argument 'locals' "
Perhaps the reason for this is that function html() has been updated.
How will I solve this problem. <br/>
By the way, is the markdown cell available in future versions of Sage?</p>
http://ask.sagemath.org/question/32362/about-html-in-notebook/?answer=32363#post-id-32363My guess (and this is only a guess, haven't had time to investigate or confirm this) is that this is due to the deprecation of `html()` for `pretty_print(html())`. Try in a cell
html(some code)
and see what happens - you should get a deprecation warning. So that is perhaps the source of the problem. A workaround is to just put each line of the cell in `pretty_print(html())` or perhaps just `html()`. Edit: I've reported [this upstream](https://github.com/sagemath/sagenb/issues/360).
I don't believe that Sage notebook (as opposed to SageMathCloud or Jupyter) supports `%md`, and it's unlikely it would. I've opened [this issue](https://github.com/sagemath/sagenb/issues/359) but keep in mind that sagenb is mostly in maintenance mode at the current time.Thu, 28 Jan 2016 09:37:48 -0600http://ask.sagemath.org/question/32362/about-html-in-notebook/?answer=32363#post-id-32363