On a related note, it seems that when an item in the selector is a zip, now 
that zips are not evaluated lists, then the zip is "used up" in the process 
of making the selector.  Compare the following:

longmonths = 
['January','February','March','April','May','June','July','August','September','October','November','December']
L = list(zip(range(1,13),longmonths))
@interact
def iceplotter(month = selector(L, default = 4, label="Month")):
    print(month)

and 

longmonths = 
['January','February','March','April','May','June','July','August','September','October','November','December']
L = zip(range(1,13),longmonths)
@interact
def iceplotter(month = selector(L, default = 4, label="Month")):
    print(month)

On Monday, June 1, 2020 at 2:01:18 PM UTC-4, kcrisman wrote:
>
> At 
> https://github.com/sagemath/sagecell/blob/master/interact_sagecell.py#L747 
> we see that the list of values in a selector essentially requires only the 
> value, not the label.
>
> But 
> https://wiki.sagemath.org/interact/web#Arctic_sea_ice_extent_data_plot.2C_fetched_from_NSIDC
>  
> seems to indicate that the default was allowed to be the tuple (value, 
> label) in the past.
>
> There are other problems with this interact (well, with MANY of them!) but 
> wanted to ask whether this should be considered a bug or a documentation 
> failure.  Maybe people haven't been using things in this way lately? (I 
> mean using list of values with labels and then having explicit default as a 
> tuple.)
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-cell" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-cell/c03fec86-216b-4747-af4d-c5e453484c7d%40googlegroups.com.

Reply via email to