Ask Your Question
0

About %html in Notebook

asked 2016-01-28 16:22:56 +0100

danny gravatar image

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-01-28 16:37:48 +0100

kcrisman gravatar image

updated 2016-01-31 03:33:36 +0100

My 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.

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 but keep in mind that sagenb is mostly in maintenance mode at the current time.

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

Stats

Asked: 2016-01-28 16:22:56 +0100

Seen: 807 times

Last updated: Jan 31 '16