#6855: Embed live cells in external web pages and enable published interacts
-------------------------+--------------------------------------------------
Reporter: mpatel | Owner: boothby
Type: enhancement | Status: new
Priority: major | Milestone:
Component: notebook | Keywords:
Reviewer: | Author:
Merged: |
-------------------------+--------------------------------------------------
Changes (by mpatel):
* priority: minor => major
Old description:
> 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.
>
> Please visit the Sage Wiki to view [http://wiki.sagemath.org/interact
> some examples].
>
> Currently, `interact` cells do not work in published worksheets.
New description:
1. A Sage Embed API for loading cells or worksheets easily in external web
pages, could be useful. For example,
{{{
[...]
<link rel="stylesheet" type="text/css" href="sage_embed.css" />
<script src="sage_embed.js"></script>
<script>
var initialize = function () {
var cell = new SageCell(); // empty by default
cell.init(document.getElementById('cell1'));
var ws = new SageWorksheet();
ws.load('http://sagenb.org/url/to/worksheet/');
ws.init(document.getElementById('worksheet1'));
};
</script>
</head>
<body onload="initialize();">
<div id="cell1" style="height: 10.0em; width: 20.0em;"></div>
Blah, blah, blah.
<div id="worksheet1" style="height: 600px; width: 100%;"></div>
[...]
}}}
See, e.g., the [http://code.google.com/apis/wave/embed/guide.html Google
Wave Embed API] for inspiration.
2. 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.
Please visit the Sage Wiki to view [http://wiki.sagemath.org/interact some
examples].
Currently, `interact` cells do not work in published worksheets.
If necessary, we can move one of these to another ticket.
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6855#comment:2>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---