Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

%maxima cells are partially broken #7418

Closed
sagetrac-whuss mannequin opened this issue Nov 9, 2009 · 10 comments
Closed

%maxima cells are partially broken #7418

sagetrac-whuss mannequin opened this issue Nov 9, 2009 · 10 comments

Comments

@sagetrac-whuss
Copy link
Mannequin

sagetrac-whuss mannequin commented Nov 9, 2009

In the new sage notebook maxima cells do not work anymore for inputs
starting with '%'.

%maxima
%pi

Traceback (click to the left for traceback)
...
AttributeError: 'sage.symbolic.expression.Expression' object has no
attribute 'eval'

or:

%maxima
%e^(%i * %pi)

Syntax Error:
    %e^(%i * %pi)

This used to work with older Sage versions.

CC: @williamstein @TimDumol

Component: notebook

Author: Mike Hansen

Reviewer: Tim Dumol, Mitesh Patel

Merged: SageNB 0.8.1

Issue created by migration from https://trac.sagemath.org/ticket/7418

@sagetrac-whuss sagetrac-whuss mannequin added this to the sage-4.5 milestone Nov 9, 2009
@sagetrac-whuss sagetrac-whuss mannequin assigned boothby Nov 9, 2009
@mwhansen
Copy link
Contributor

mwhansen commented Nov 9, 2009

comment:1

I think the best fix for this is to break from processing the percent directives once a system directive has been reached. It should be easy to detect this as the system directives are the "unknown" one has been reached.

@mwhansen
Copy link
Contributor

Author: Mike Hansen

@TimDumol
Copy link
Mannequin

TimDumol mannequin commented Jan 17, 2010

comment:3

Applying the patch on the latest version off the repository (sagenb-0.5.0 + #7843 + #7844 + #7846 + #7871) causes the system directives to display (%html, %maxima, etc. are visible on output).

@TimDumol TimDumol mannequin added s: needs work and removed s: needs review labels Jan 17, 2010
@mwhansen
Copy link
Contributor

comment:4

Sorry about that. I put up a new patch which should fix it. I opted for duplicating the directives.append line instead of having some sort of check to see if the system was set as it makes the flow a little cleaner.

@TimDumol
Copy link
Mannequin

TimDumol mannequin commented Jan 19, 2010

comment:5

Same problem still here (sagenb-0.6)

@TimDumol TimDumol mannequin added s: needs work and removed s: needs review labels Jan 19, 2010
@qed777
Copy link
Mannequin

qed777 mannequin commented Jan 25, 2010

Add one. Rebased for queue in comment. Replaces previous.

@qed777
Copy link
Mannequin

qed777 mannequin commented Jan 25, 2010

comment:6

Attachment: trac_7418-maxima_cells.2.patch.gz

V2 adds one --- I hope it's in the right place. The queue:

SageNB 0.7 / #8051
trac_7784-hgignore_update.patch
trac_5712-interrupt-notification.5.patch
trac_6069-missing_pub_ws.2.patch
trac_8038-email_plus_addressing_v2.patch
trac_7506-notebook_object-documentation.2.patch
trac_693-spawn_notebook.3.patch
trac_5177-delete-cell-dirs.2.patch
trac_7418-maxima_cells.2.patch

The patch version numbers may be off by one or so.

Positive review, but someone should review my change.

@qed777 qed777 mannequin added s: needs review and removed s: needs work labels Jan 25, 2010
@qed777
Copy link
Mannequin

qed777 mannequin commented Jan 25, 2010

Reviewer: Tim Dumol, Mitesh Patel

@TimDumol
Copy link
Mannequin

TimDumol mannequin commented Apr 21, 2010

comment:8

LGTM. Positive review.

@TimDumol
Copy link
Mannequin

TimDumol mannequin commented Jul 11, 2010

Merged: SageNB 0.8.1

@TimDumol TimDumol mannequin removed the s: positive review label Jul 11, 2010
@TimDumol TimDumol mannequin closed this as completed Jul 11, 2010
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants