tput:终端属性:在Enthought Canopy中没有这样的设备或地址。我正在尝试
import plotly.plotly as py
import numpy as np
data = [dict(
visible = False,
line=dict(color='00CED1', width=6),
name = ' = '+str(step),
x = np.arange(0,10,0.01),
y = np.sin(step*np.arange(0,10,0.01))) for step in np.arange(0,5,0.1)]
data[10]['visible'] = True
steps = []
for i in range(len(data)):
step = dict(
method = 'restyle',
args = ['visible', [False] * len(data)],
)
step['args'][1][i] = True # Toggle i'th trace to "visible"
steps.append(step)
sliders = [dict(
active = 10,
currentvalue = {"prefix": "Frequency: "},
pad = {"t": 50},
steps = steps
)]
layout = dict(sliders=sliders)
fig = dict(data=data, layout=layout)
py.iplot(fig, filename='Sine Wave Slider')
所以得到错误:
tput: terminal attributes: No such device or address
tput: terminal attributes: No such device or address
tput: terminal attributes: No such device or address
tput: terminal attributes: No such device or address
tput: terminal attributes: No such device or address
tput: terminal attributes: No such device or address
tput: terminal attributes: No such device or address
如何纠正此输出问题?