Opened 6 years ago

Closed 4 years ago

#18661 closed defect (duplicate)

@interact in ipython notebook

Reported by: gagern Owned by:
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: notebook Keywords: ipython interact
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

Apparently @interact doesn't work in the Sage 6.7 IPython notebook. The following prints a bunch of HTML code, apparently describing the slider controls:

@interact
def f(t=(-1,1)):
  print(t)

It would be nice if this could be made to work. If getting there is going to take a bit longer, then it would be nice to see a explanatory message instead of that HTML output.

I'm a bit surprised I don't see a ticket for this yet, but my search didn't turn up any likely candidates so far.

Change History (2)

comment:1 Changed 6 years ago by vbraun

This is because @interact is "designed" around print()-ing html: See #18292

comment:2 Changed 4 years ago by jdemeyer

  • Milestone changed from sage-6.8 to sage-duplicate/invalid/wontfix
  • Resolution set to duplicate
  • Status changed from new to closed

Fixed by #21267

Note: See TracTickets for help on using tickets.