New GlowScript 2.1

22 views
Skip to first unread message

Bruce Sherwood

unread,
Feb 28, 2016, 8:39:55 PM2/28/16
to Glowscript Users

There is a new Jupyter VPython beta version 0.2.0b14 that is based on a new GlowScript 2.1, whose description follows:


2016 Feb. 28: GlowScript 2.1


Improves and simplifies scene.title and scene.caption. Now you can sayscene.title = "Watch the <b>ball</b>" ("ball" will be bold) and caption.title = "This is what <i>always</i> happens" ("always" will be italic). You can also obtain the current contents for the title (T = scene.title) and caption (C = scene.caption). 


You can add to existing title or caption with scene.append_to_title(...) or scene.append_to_caption(...).


The old forms scene.title.text() and scene.title.html() could be used to specify the title but there wasn't a way to retrieve the current title. You had to decide between text and html, but now it doesn't matter; you always get full HTML capabilities.


These changes are not fully compatible with previous versions of GlowScript, which is why the version number has been changed to 2.1, but older versions will continue to work as before. Another reason for the changes has to do with making the Jupyter version of VPython work well.


Changes to the use of jQuery: If you use jQuery to display widgets (buttons, sliders, menus), see this documentation on changes to how to reference the title, caption, and print regions of the page.

Reply all
Reply to author
Forward
0 new messages