-
-
Notifications
You must be signed in to change notification settings - Fork 488
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
Include CodeMirror in SageNB and use it to edit data files #7501
Comments
Attachment: sagenb_7501-part1.patch.gz Attachment: sagenb_7501-part2.patch.gz |
comment:1
Positive review to William's patch, as a proof-of-concept patch. In the end, codemirror gets included on every page---that shouldn't be. |
Reviewer: Jason Grout |
Author: William Stein, Jason Grout |
comment:3
For the next step: these people apparently worked on an autocompletion function: http://groups.google.com/group/codemirror/browse_frm/thread/37a078e69b26a213# |
comment:4
I can rebase this and try to include it in SageNB 0.7.x (cf. #8051) or, perhaps, 0.8. |
comment:6
See the description for links to rebased patches. I've adjusted line numbers' style so they line up with the lines in the editor. |
This comment has been minimized.
This comment has been minimized.
comment:7
I should have said that the "rebased" patches are actually new. It seem easier to do this given the extent of changes to SageNB since the original patches were made. Also, the original set
Part A just adds CodeMirror to the repository. Part B configures it for the data file page. |
comment:8
Replying to @qed777:
Or more pages than necessary, at least. |
comment:9
Has any of this been tested on Solaris? |
comment:10
Replying to @sagetrac-drkirkby:
I haven't. But if you have a spare moment, please test the patches and let us know! Note: CodeMirror runs entirely in the browser. |
comment:11
I would never have enough time to test individuals patches. But William is keen a Solaris port is completed very soon and if things don't get checked, then it hampers that port. Dave |
Changed author from William Stein, Jason Grout to William Stein, Jason Grout, Mitesh Patel |
Changed reviewer from Jason Grout to Jason Grout, Tim Dumol |
comment:12
Looks ok to me, and it is extremely unlikely that this can have any negative effect on any platform, since, as Mitesh said, it's totally in the browser. |
Merged: sagenb-0.8 |
After an extensive evaluation, we all decided that CodeMirror is the best JavaScript code editor to include in Sage. It's faster and more robust than EditArea. Initially, we will include it only for editing
Data --> file
, then maybe later adapt it for input cells.See this screenshot.
Apply both
to SageNB 0.7.4 (cf. #8051) OR get a trial spkg from #8194.
Component: notebook
Author: William Stein, Jason Grout, Mitesh Patel
Reviewer: Jason Grout, Tim Dumol
Merged: sagenb-0.8
Issue created by migration from https://trac.sagemath.org/ticket/7501
The text was updated successfully, but these errors were encountered: