plot = interactive(update_plot, p=(0, 100), continuous_update=False)
output = plot.children[-1]
output.layout.height = '300px'
play_btn = ToggleButton( description='Play' )
play_btn.observe(play_cb)
gui = HBox([plot,play_btn])
gui
On Sunday, February 23, 2020 at 10:15:25 PM UTC-5, Randy Heil
Hello,
I'm doing the equivalent of this:
self.i_plot = interactive(self.plot_file, frame=(0, num_files),
continuous_update=False)
def plot_file(self, file_num):
...
and would like to have a "Play" button be able to programmatically step
through all files. However, I
t; not a way to change the frontend focus from python in the core ipywidgets
> system.
>
> On Fri, May 11, 2018 at 9:55 AM Jason Grout <ja...@jasongrout.org> wrote:
>
>> No, there's not a way to change the frontend focus from python.
>>
>> Jason
>>
>>
Is there a way to programmatically give a widget focus? I have a
multi-tabbed UI and would like to have the slider on an 'interactive'
widget have focus when I select the tab in which it lives (so the user can
immediately press keys to step the slider).
thanks, Randy
--
You received this
Has anyone done any programmatic/automated testing of Jupyter widgets?
E.g., test if numeric input widgets got a valid number?
thanks, Randy
--
You received this message because you are subscribed to the Google Groups
"Project Jupyter" group.
To unsubscribe from this group and stop receiving
; Does this section in the docs help?
>
> https://ipywidgets.readthedocs.io/en/latest/examples/Widget%20Styling.
> html#Description
>
>
>
> On Sat, Mar 24, 2018 at 3:18 PM Randy Heiland <randy.heil...@gmail.com>
> wrote:
>
>> The following crops the description for the F
The following crops the description for the FloatText; how can I have it
not do that? Basically, I'd like to display the entire description string
and shorten the FloatText input box.
from ipywidgets import Layout, HBox, FloatText, Label
numVal = FloatText (
description= 'Enter your value',
Is it possible to remove the little up-down arrows to increment values in a
numeric widget? My desire to do so is to save on horizontal space when I
want several such widgets. Thanks!
--
You received this message because you are subscribed to the Google Groups
"Project Jupyter" group.
To
Is it possible to dynamically set the range on the interactive widget, e.g.
change 100 to 500 from another numeric input widget:
widgets.interactive(plot_svg, idx=(0, 100), continuous_update=False)
--
You received this message because you are subscribed to the Google Groups
"Project Jupyter"
> readthedocs.io/en/latest/examples/Using%20Interact.
> html#Disabling-continuous-updates
>
> Jason
>
>
> On Mon, Feb 19, 2018, 10:09 Randy Heiland <randy.heil...@gmail.com> wrote:
>
>> I seem to have fixed my initial problem - rf. attached .ipynb.
>>
>
I seem to have fixed my initial problem - rf. attached .ipynb.
Next question - how do I avoid continuous update when a slider is moved?
thanks, Randy
On Monday, February 19, 2018 at 11:13:02 AM UTC-5, Randy Heiland wrote:
>
> Hello,
>
> I was testing the following on https://try
Hello,
I was testing the following on https://try.jupyter.org/ and wondering why
the plot sometimes disappears:
%matplotlib notebook
import numpy as np
import matplotlib.pyplot as plt
def f(p):
plt.figure(2)
nx = 10
ny = 10
x = np.linspace(1, nx, nx)
y = np.linspace(1, ny,
12 matches
Mail list logo