I modified the extra code in cell.py to dynamically load the
javascript as needed. For some reason, you still have to refresh the
page to see the image. The modified steps are detailed on the ticket.
Let me know what else can be done.
Alex Eftimiades
On Feb 10, 2014, at 12:57 PM, kcrisman wrote:
Great point! I've added this to the ticket.
On Saturday, February 8, 2014 10:39:42 PM UTC-5, William wrote:
On Sat, Feb 8, 2014 at 7:01 PM, kcrisman <[email protected]> wrote:
>
>
> On Saturday, February 8, 2014 6:42:31 PM UTC-5,
[email protected] wrote:
>>
>> I have been working on a way to view sage x3d files interactively
through
>> the sage notebook. If anyone is interested, I got it working
(although you
>> have to refresh the page to see the display, I am pretty sure
someone could
>> tell me why/how to fix it).
>>
>
> Wow, nice work! I opened https://github.com/sagemath/sagenb/issues/199
in
> the hopes that someone can add this option, assuming the js file
is clean.
Please be careful in how this is actually done, keeping in mind that
3xdom.js is 800kb, and hence is surely significantly larger than all
the rest of the Javascript in sagenb combined. If this gets added to
sagenb, make sure that 3xdom.js is only loaded if somebody actually
displays an x3d file, not on *all* loads of sagenb. I tried a little
to minify 3xdom.js and it still was nearly 800kb. (Three.js is
comparable -- it's about 400kb minified.)
> Since we have x3d support we might as well use it, or enable
people to do
> so...
--
William Stein
Professor of Mathematics
University of Washington
http://wstein.org
--
You received this message because you are subscribed to a topic in
the Google Groups "sage-devel" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sage-devel/oRGbnyUxVXQ/unsubscribe
.
To unsubscribe from this group and all its topics, send an email to [email protected]
.
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.