Ticket #11219 (closed enhancement: fixed)
document "%edit" in the tutorial
| Reported by: | jhpalmieri | Owned by: | mvngu |
|---|---|---|---|
| Priority: | minor | Milestone: | sage-4.7 |
| Component: | documentation | Keywords: | |
| Cc: | kcrisman | Work issues: | |
| Report Upstream: | N/A | Reviewers: | John Cremona |
| Authors: | John Palmieri | Merged in: | sage-4.7.rc0 |
| Dependencies: | Stopgaps: |
Description (last modified by jhpalmieri) (diff)
The attached patch adds documentation for the %edit command in the Sage tutorial.
Attachments
Change History
comment:3 Changed 2 years ago by cremona
- Status changed from needs_review to positive_review
The patch applies and builds fine. I learned a lot from reading the tutorial after testing that!
One thing does not work as advertised, I think: using logstart. I could not load unless I gave the logfile a suffix such as .sage or .py, note that the stored commands are preparsed before being stored. But when the file is loaded in another session I do not see this
Loading log file <setup> one line at a time...
Finished replaying log file <setup>
but rather this
sage: load "setup.py" Activating auto-logging. Current session state plus future input saved. Filename : setup.py Mode : backup Output logging : False Raw input log : False Timestamping : False State : active
which does load the stuff *but also overwrites the file setup.py*!!!
So I'm giving this a positive review but want the other thing fixed before we forget all about it.
comment:4 Changed 2 years ago by jhpalmieri
- Cc kcrisman added
- Reviewers set to John Cremona
- Status changed from positive_review to needs_info
In response to kcrisman's comment on sage-devel, I added a little bit about commands run in the background not being preparsed. Could you do another review on that? I'm posting a new patch ("...v2.patch") and another patch showing the difference, for easy reference.
Changed 2 years ago by jhpalmieri
-
attachment
trac_11219-ipython-edit.v2.patch
added
apply only this patch
Changed 2 years ago by jhpalmieri
-
attachment
trac_11219-ipython-edit.delta.patch
added
difference between versions 1 and 2, for reference only
comment:5 Changed 2 years ago by jhpalmieri
- Status changed from needs_info to needs_review
- Description modified (diff)
comment:7 Changed 2 years ago by jdemeyer
- Milestone changed from sage-4.7.1 to sage-4.7
Looks safe enough for sage-4.7-rc0.
comment:8 Changed 2 years ago by jdemeyer
- Status changed from positive_review to closed
- Resolution set to fixed
- Merged in set to sage-4.7.rc0
comment:9 Changed 3 months ago by kcrisman
This never made it into the translations of the tutorial - German, French, or Russian. I don't know if they existed at the time in any case, but I've opened #14051 for this. I don't know if the newer translations not yet in I reference their have this stuff or not.
