Ask Your Question

Interacts not working in IPython notebook

asked 2014-12-24 14:42:00 -0500

jaia gravatar image

I'm running Sage 6.4.1 (on Ubuntu 14.04 and Firefox 34.0) and using the IPython notebook. It's a great interface, but interactives aren't working. For example, the following brings up a bunch of HTML rather than an actual interactive.

def test(a=(-3,3)):
    p=plot(a*sin(x), (x,-2*pi, 2*pi))

Do interactives work differently in the IPython notebook?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-12-25 09:50:01 -0500

tmonteil gravatar image

updated 2014-12-25 09:51:51 -0500

Yes, the @interact decorator is (currently) specific to the standard Sage notebook, since it produces raw html that is escaped by ipython notebook. If you want to have interacts within ipython notebook right now, you can have a look at this page and this example page.

On the Sage development side, there is still some work to get the best of both.

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


Asked: 2014-12-24 14:42:00 -0500

Seen: 495 times

Last updated: Dec 25 '14