Ticket #6460 (closed enhancement: invalid)

Opened 8 months ago

Last modified 4 months ago

contentEditable cells

Reported by: mpatel Owned by: boothby
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: notebook Keywords:
Cc: Author(s):
Report Upstream: Reviewer(s):
Merged in: Work issues:

Description

Experiments with new cell representations. See, e.g.,

 wysiwyg mathematics

 A variation on Rado's graph editor

Attachments

contedit_v2.tbz2 Download (13.5 KB) - added by mpatel 8 months ago.
graphed_ext.tbz2 Download (12.5 KB) - added by mpatel 8 months ago.
External window

Change History

Changed 8 months ago by mpatel

Changed 8 months ago by mpatel

The new version should work in FF 3/3.5. Nearly all of the changes are cosmetic. See the code for details. I didn't address the problems with iframes, since it's likely we'll go with another approach.

Changed 8 months ago by mpatel

External window

Changed 8 months ago by mpatel

For what it's worth, I've attached an example Download that launches Rado's graph editor in a new, potentially reusable window, from a notebook cell. Suggested directions:

  • Put graphed_ext.html and processing.editor.min.js in $SAGE_ROOT/local/notebook/javascript/. I haven't edited the enclosed  Processing library, but it may be different from Rado's latest.
  • Load graphed.txt as a worksheet. The serialization code is from Rado's recent post about his elegant inline editor for the notebook.
  • Try, e.g., g = graphs.CubeGraph(4), followed by graph_editor(g, 'g_mod'), say. A pop-up blocker may complain. I just allowed pop-ups from localhost.
  • See, e.g.,  this link for various window options. To open the editor in a tab, check the browser settings for overrides and use var win = window.open(url, name); with the appropriate url and some name. Different names will yield separate windows (or tabs). The browser's security policy may prevent some actions, e.g., re-establishing client-side connections to reloaded parent worksheets.

It may be better to make some server-side changes. Again, this is just an example.

A possible extension is the ability to keep a list of graphs in the new window and edit and export them in a random-access fashion --- a graph browser, perhaps. Another is sharing an editor among multiple open worksheets. The work on tearing out docstrings is somewhat related (cf. #6001).

Feel free to ask questions and make suggestions, though I'm a bit JavaScripted out just now...

Changed 7 months ago by mpatel

The proper ticket for an interactive graph editor in Sage is actually #1321. Sorry!

Changed 4 months ago by mpatel

I think the scope here is too wide. Please close this ticket.

Changed 4 months ago by mhansen

  • status changed from new to closed
  • resolution set to invalid
  • milestone set to sage-duplicate/invalid/wontfix
Note: See TracTickets for help on using tickets.