Ask Your Question
0

About %html in Notebook

asked 9 years ago

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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 9 years ago

kcrisman gravatar image

updated 9 years ago

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.

Preview: (hide)
link

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: 9 years ago

Seen: 939 times

Last updated: Jan 31 '16