def display(self, duration=None, period=<NUM_LIT:2>):
import ipywidgets as widgets<EOL>vn = widgets.Text(value=self.description, description=self.name, disabled=True)<EOL>active = widgets.Valid(value=True, description='<STR_LIT>', readout='<STR_LIT>')<EOL>out = widgets.Output(layout={'<STR_LIT>': '<STR_LIT>'})<EOL>hb = widgets.HBox([vn, active])<EOL>vb = widgets.VBox([hb, out])<EOL>display(vb)<EOL>self._display_thread = threading.Thread(target=lambda: self._display(out, duration, period, active))<EOL>self._display_thread.start()<EOL>
Display a view within a Jupyter or IPython notebook.

        Provides an easy mechanism to visualize data on a stream
        using a view.

        Tuples are fetched from the view and displayed in a table
        within the notebook cell using a ``pandas.DataFrame``.
        The table is continually updated with the latest tuples from the view.

        This method calls :py:meth:`start_data_fetch` and will call
        :py:meth:`stop_data_fetch` when completed if `duration` is set.

        Args:
            duration(float): Number of seconds to fetch and display tuples. If ``None`` then the display will be updated until :py:meth:`stop_data_fetch` is called.
            period(float): Maximum update period.

        .. note::
            A view is a sampling of data on a stream so tuples that
            are on the stream may not appear in the view.

        .. note::
            Python modules `ipywidgets` and `pandas` must be installed
            in the notebook environment.

        .. warning::
            Behavior when called outside a notebook is undefined.

        .. versionadded:: 1.12