gpt4 book ai didi

python - 交互 ipywidget 最小值和最大值

转载 作者:行者123 更新时间:2023-11-30 22:25:01 24 4
gpt4 key购买 nike

我想从 ipywidgets 设置 interact 的最小值和最大值。 This这是我能找到的所有关于interact使用的信息。我本质上是在尝试执行第一个示例,但是使用了 slider 的指定值范围。

最佳答案

您问题的答案是further down in the docs 。引用设置 min/max 的示例:

interact(f, x=widgets.IntSlider(min=-10,max=30,step=1,value=10))

关于python - 交互 ipywidget 最小值和最大值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47660103/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com