2021-10-01 16:12:48 +0200 | received badge | ● Famous Question (source) |
2019-09-25 07:35:32 +0200 | received badge | ● Notable Question (source) |
2019-06-02 12:08:54 +0200 | received badge | ● Popular Question (source) |
2018-05-08 23:31:22 +0200 | received badge | ● Student (source) |
2018-05-08 23:07:01 +0200 | asked a question | One interact slider for multiple functions Hello everyone, I'm new to Sagemath and Python in general, so forgive me if this is trivial. I am trying to create one slider, which can control several functions, which are all based on the same variable, at the same time, here's an example def function_a(x): return x + 1 def function_b(x): return x + 2 mySlider = widgets.FloatSlider(min=0.1, max=10.0, step=0.1, value=1.0) interact(function_a(x),function_b(x), x=mySlider) # calling both functions in interact is not allowed Me and friends from university tried for several hours now, with no satisfying result. The example is just to ilustrate the challenge, we never expected it to work. Thanks in advance! |