sagemath/sagecell — Issue #245: Slider Compatibility
Author: kramer314
Created: 2012-02-13 00:42:39+00:00
State: open
Labels: compatibility, interacts

```python
@interact
def f(n=slider([1..50])):
print n

```
works in regular sagenb, but fails with the following error:

```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/tmp/tmp7yAFC5/ in ()

/padic/scratch/jason/sagecell/sagecell/interact_compatibility.py in slider(vmin, vmax, step_size, default, label, display_value)
155 return DiscreteSlider(range_slider=False, values=values,
--> 156 default=default, label=label, display_value=display_value)
157

/padic/scratch/jason/sagecell/sagecell/interact_sagecell.py in __init__(self, values, default, range_slider, display_value, label)
619 else:
--> 620 self.values = values[:]
621

TypeError: 'NoneType' object is not subscriptable
```

This was reported here: http://groups.google.com/group/sage-devel/msg/fab11c264dd7ce3d