Ticket #4448 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

[with patch, positive review] easy-to-fix (?) bug in interact with matrices

Reported by: was Owned by: itolkov
Priority: major Milestone: sage-3.2
Component: interact Keywords:
Cc: Work issues:
Report Upstream: Reviewers:
Authors: Merged in:
Dependencies: Stopgaps:

Description

Try this interact in the notebook:

@interact
def f(n=matrix([[pi^2]])):
    print n

Notice that the matrix input appears empty. What is happening, I think, is that str(...) is being called on each entry instead of repr(...) which causes uses of ASCII art. It seems this is a problem only for matrices.

Attachments

trac-4448-interact-grid.patch Download (966 bytes) - added by jason 5 years ago.

Change History

Changed 5 years ago by jason

comment:1 Changed 5 years ago by jason

  • Summary changed from easy-to-fix (?) bug in interact with matrices to [with patch, needs review] easy-to-fix (?) bug in interact with matrices

Indeed, that was the problem.

comment:2 Changed 5 years ago by mhansen

  • Summary changed from [with patch, needs review] easy-to-fix (?) bug in interact with matrices to [with patch, positive review] easy-to-fix (?) bug in interact with matrices

Looks good.

comment:3 Changed 5 years ago by mabshoff

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from sage-3.2.1 to sage-3.2

Merged in Sage 3.2.rc0

Note: See TracTickets for help on using tickets.