Changes between Initial Version and Version 2 of Ticket #6855


Ignore:
Timestamp:
09/11/09 08:46:54 (11 years ago)
Author:
mpatel
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6855

    • Property Priority changed from minor to major
    • Property Summary changed from [with patch, needs work] Enable interacts in published worksheets to Embed live cells in external web pages and enable published interacts
  • Ticket #6855 – Description

    initial v2  
    1 Worksheets in the Sage notebook can contain live `interact`-ive cells, which may make it easier to understand how an object's properties depend on a set of parameters.
     11. A Sage Embed API for loading cells or worksheets easily in external web pages, could be useful.  For example,
     2{{{
     3[...]
     4  <link rel="stylesheet" type="text/css" href="sage_embed.css" />
     5  <script src="sage_embed.js"></script>
     6  <script>
     7    var initialize = function () {
     8        var cell = new SageCell(); // empty by default
     9        cell.init(document.getElementById('cell1'));
     10
     11        var ws = new SageWorksheet();
     12        ws.load('http://sagenb.org/url/to/worksheet/');
     13        ws.init(document.getElementById('worksheet1'));
     14    };
     15  </script>
     16</head>
     17<body onload="initialize();">
     18  <div id="cell1" style="height: 10.0em; width: 20.0em;"></div>
     19  Blah, blah, blah.
     20  <div id="worksheet1" style="height: 600px; width: 100%;"></div>
     21[...]
     22}}}
     23See, e.g., the [http://code.google.com/apis/wave/embed/guide.html Google Wave Embed API] for inspiration.
     24
     252. Worksheets in the Sage notebook can contain live `interact`-ive cells, which may make it easier to understand how an object's properties depend on a set of parameters.
    226
    327Please visit the Sage Wiki to view [http://wiki.sagemath.org/interact some examples].
    428
    529Currently, `interact` cells do not work in published worksheets.
     30
     31If necessary, we can move one of these to another ticket.