[sagenb] 120/157: Final doc fixes for color picker

felix salfelder felix-guest at moszumanska.debian.org
Mon Dec 22 16:51:59 UTC 2014


This is an automated email from the git hooks/post-receive script.

felix-guest pushed a commit to branch master
in repository sagenb.

commit 37aea26275457f39921142479f11e34d4d4a59d0
Author: kcrisman <kcrisman at gmail.com>
Date:   Wed Oct 22 08:51:20 2014 -0400

    Final doc fixes for color picker
    
    This should close #245 and avoids the issue of adding extra commits into history.  It would be nice if someone independently checked this passes tests before we package the next sagenb.
---
 sagenb/notebook/interact.py | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/sagenb/notebook/interact.py b/sagenb/notebook/interact.py
index 789554f..52fa935 100644
--- a/sagenb/notebook/interact.py
+++ b/sagenb/notebook/interact.py
@@ -461,8 +461,8 @@ def html_color_selector(id, change, input_change, default='000000',
 
         sage: sagenb.notebook.interact.html_color_selector(0, 'alert("changed")', '', default='0afcac')
         '...<table>...colorpicker...'
-        sage: sagenb.notebook.interact.html_color_selector(99, 'console.log(color);', '', default='fedcba', widget='colorpicker', hide_box=True)
-        '...<table>...colorpicker...'
+        sage: sagenb.notebook.interact.html_color_selector(99, 'console.log(color);', '', default='fedcba', widget='farbtastic', hide_box=True)
+        '...<table>...farbtastic...'
     """
     input_style = ''
     if hide_box:
@@ -2493,12 +2493,11 @@ def interact(f, layout=None, width='800px'):
         ...     show(plot(a, -zoom*pi,zoom*pi, color=clr, thickness=thickness, plot_points=plot_points))
         <html>...
 
-    For a more compact color control, use an empty label, a different
-    widget (``'colorpicker'`` or ``'jpicker'``), and hide the input
-    box::
+    For a more compact color control, use an empty label and
+    hide the input box::
 
         sage: @interact
-        ... def _(color=color_selector((1,0,1), label='', widget='colorpicker', hide_box=True)):
+        ... def _(color=color_selector((1,0,1), label='', hide_box=True)):
         ...     show(plot(x/(8/7+sin(x)), (x,-50,50), fill=True, fillcolor=color))
         <html>...
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagenb.git



More information about the debian-science-commits mailing list