[jupyter] Re: programmatic control of Jupyter interactive

2020-02-24 Thread Randy Heiland
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

[jupyter] programmatic control of Jupyter interactive

2020-02-23 Thread Randy Heiland
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

Re: [jupyter] setting focus on a widget

2018-05-11 Thread Randy Heiland
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 >> >>

[jupyter] setting focus on a widget

2018-05-11 Thread Randy Heiland
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

[jupyter] programmatic testing of widgets?

2018-04-02 Thread Randy Heiland
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

Re: [jupyter] numeric text description cropped

2018-03-28 Thread Randy Heiland
; 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

[jupyter] numeric text description cropped

2018-03-24 Thread Randy Heiland
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',

[jupyter] remove up-down arrows on numeric widgets?

2018-03-22 Thread Randy Heiland
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

[jupyter] dynamic range on interactive widget

2018-03-20 Thread Randy Heiland
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"

Re: [jupyter] Re: widget updating plot; plot disappears

2018-02-21 Thread Randy Heiland
> 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. >> >

[jupyter] Re: widget updating plot; plot disappears

2018-02-19 Thread Randy Heiland
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

[jupyter] widget updating plot; plot disappears

2018-02-19 Thread Randy Heiland
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,