Opened 15 years ago
Last modified 6 weeks ago
#3365 needs_work enhancement
[with patch; under review by tclemans before 6/27] add a %c mode to the notebook (like %fortran)
Reported by: | was | Owned by: | cwitty |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | misc | Keywords: | editor_wstein |
Cc: | Merged in: | ||
Authors: | Reviewers: | ||
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description (last modified by )
Michael Schmitz -- a student in Math 480 -- created this code. It makes it so you can do %c in a notebook cell and write pure C functions. Very fun. E.g.,
%c int foo(int a, int b) { return(a*b);}
foo(2r,3r) /// 6
TO INSTALL:
- apply the patch
- install py_inline:
tar jxvf py_inline-0.03.tar.bz2 cd py_inline-0.03 sage -python setup.py install
NOTE: py_inline will be a new spkg. This needs to get into sage before this ticket can be closed.
Attachments (3)
Change History (13)
Changed 15 years ago by
Attachment: | sage-3365.patch added |
---|
Changed 15 years ago by
Attachment: | py_inline-0.03.tar.bz2 added |
---|
comment:1 Changed 15 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 15 years ago by
Summary: | [with patch; needs review] add a %c mode to the notebook (like %fortran) → [with patch; positive review] add a %c mode to the notebook (like %fortran) |
---|---|
Type: | defect → enhancement |
This works on sage.math and doctests for c.py pass.
comment:3 Changed 15 years ago by
Do we really want to merge this as is since we are adding a new python package? Creating a new spkg for 10kb Python code also seems like a waste
Thoughts?
Cheers,
Michael
Changed 15 years ago by
Attachment: | fixedtheproblem.zip added |
---|
this zip file contains both the patch and the new to-be-made spkg; it replaces the previous attached patches
comment:4 Changed 15 years ago by
Description: | modified (diff) |
---|---|
Summary: | [with patch; positive review] add a %c mode to the notebook (like %fortran) → [with patch; not ready for review] add a %c mode to the notebook (like %fortran) |
comment:5 Changed 15 years ago by
Keywords: | editor_wstein added |
---|---|
Summary: | [with patch; not ready for review] add a %c mode to the notebook (like %fortran) → [with patch; under review by tclemans before 6/27] add a %c mode to the notebook (like %fortran) |
comment:6 Changed 9 years ago by
Milestone: | sage-5.11 → sage-5.12 |
---|
comment:7 Changed 9 years ago by
Milestone: | sage-6.1 → sage-6.2 |
---|
comment:8 Changed 9 years ago by
Milestone: | sage-6.2 → sage-6.3 |
---|
comment:9 Changed 8 years ago by
Milestone: | sage-6.3 → sage-6.4 |
---|
comment:10 Changed 6 weeks ago by
Milestone: | sage-6.4 |
---|---|
Report Upstream: | → N/A |
this satandard python package must be installed with ' sage -python setup.py install'