Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
py3: fix some doctests in interacts library (range)
Browse files Browse the repository at this point in the history
  • Loading branch information
fchapoton committed Jan 25, 2019
1 parent 5389d8d commit 76afd5f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/sage/interacts/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def html(obj):


@library_interact
def demo(n=slider(range(10)), m=slider(range(10))):
def demo(n=slider(list(range(10))), m=slider(list(range(10)))):
"""
This is a demo interact that sums two numbers.
Expand All @@ -112,10 +112,11 @@ def demo(n=slider(range(10)), m=slider(range(10))):
"""
print(n + m)


@library_interact
def taylor_polynomial(
title = text_control('<h2>Taylor polynomial</h2>'),
f=input_box(sin(x)*exp(-x),label="$f(x)=$"), order=slider(range(1,13))):
f=input_box(sin(x)*exp(-x),label="$f(x)=$"), order=slider(list(range(1,13)))):
"""
An interact which illustrates the Taylor polynomial approximation
of various orders around `x=0`.
Expand Down

0 comments on commit 76afd5f

Please sign in to comment.