小编Bah*_*mar的帖子

如何增加 ipywidgets 中的滑块长度

假设,我有以下代码:

from ipywidgets import interact, interactive
import ipywidgets as widgets

def f(x):
    return x
interact(f, x=(0,10,1));
Run Code Online (Sandbox Code Playgroud)

由此产生的交互式滑块很好,但在水平长度方面非常小。当 x 的范围很大时,例如 0 - 1000,使用该滑块执行小步变得非常困难。如何增加滑块的长度?

python-3.x jupyter-notebook ipywidgets

7
推荐指数
2
解决办法
1502
查看次数

标签 统计

ipywidgets ×1

jupyter-notebook ×1

python-3.x ×1