Hi Matthew! On Sun, Sep 6, 2009 at 10:10 PM, Matthew Turk<matthewt...@gmail.com> wrote: > > Hi there, > > I was wondering if anyone had done much with notebook interaction > widgets in FEMhub. They import okay: > > from sage.server.notebook.interact import * > > But (for instance) instantiation of a slider with more than 2 steps: > > my_slider = slider(-3.0, 0.0, step_size=0.01) > > fails on an attempt (in sage/misc/misc.py's srange definition) to > import sage.structure.sage_object, which doesn't seem to exist in the > sage/structure/ directory of the FEMhub site-packages directory. (Or > in the corresponding femhub_notebook spkg.) Is there a way around > this, or a hotfix that could be applied? I'd love to be able to > insert the interactive widgets into a notebook.
I have CCed Sage-devel --- the problem is that the notebook that we use in FEMhub is from the older version of Sage and, as far as I know, the latest notebook can't be easily extracted from Sage anymore, but I know that William will work on this near the end of September, so this should get fixed. In the meantime, the only fix that I know of is to try to fix the FEMhub's sage/misc/misc.py file to don't import things from Sage. I definitely think that the interact feature should work outside of Sage too. Ondrej --~--~---------~--~----~------------~-------~--~----~ To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---