How to use the nwbwidgets.utils.widgets.interactive_output function in nwbwidgets

To help you get started, we’ve selected a few nwbwidgets examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NeurodataWithoutBorders / nwb-jupyter-widgets / nwbwidgets / misc.py View on Github external
self.time_window_controller = time_window_controller
            self.tmin = self.time_window_controller.vmin
            self.tmax = self.time_window_controller.vmax

        self.gas = self.make_group_and_sort(group_by=group_by)

        self.progress_bar = widgets.HBox()

        self.controls = dict(
            units=fixed(self.units),
            time_window=self.time_window_controller,
            gas=self.gas,
            progress_bar=fixed(self.progress_bar)
        )

        out_fig = interactive_output(show_session_raster, self.controls)

        self.children = [
                self.gas,
                widgets.VBox(
                    children=[
                        self.time_window_controller,
                        self.progress_bar,
                        out_fig,
                    ],
                    layout=Layout(width="100%")
                )
            ]

        self.layout = Layout(width="100%")
github NeurodataWithoutBorders / nwb-jupyter-widgets / nwbwidgets / misc.py View on Github external
self.gas = self.make_group_and_sort(window=False)

        self.controls = dict(
            units=fixed(units),
            trials=fixed(self.trials),
            sigma_in_secs=fixed(sigma_in_secs),
            ntt=fixed(ntt),
            index=unit_controller,
            after=after_slider,
            before=before_slider,
            start_label=trial_event_controller,
            gas=self.gas,
            #progress_bar=fixed(progress_bar)
        )

        out_fig = interactive_output(trials_psth, self.controls)

        self.children = [
            widgets.HBox([
                self.gas,
                widgets.VBox([
                    unit_controller,
                    trial_event_controller,
                    before_slider,
                    after_slider,
                ])
            ]),
            out_fig
        ]
github NeurodataWithoutBorders / nwb-jupyter-widgets / nwbwidgets / misc.py View on Github external
'rows_label': rows_controller,
            'cols_label': cols_controller
        }

        self.children = [
            unit_controller,
            rows_controller,
            cols_controller,
            trial_event_controller,
            before_slider,
            after_slider,
        ]

        self.select_trials()

        out_fig = interactive_output(raster_grid, self.controls, self.process_controls)

        self.children = list(self.children) + [out_fig]