code: def display(self, duration=None, period=2):
          
          import ipywidgets as widgets
          vn = widgets.Text(value=self.description, description=self.name, disabled=True)
          active = widgets.Valid(value=True, description='Fetching', readout='Stopped')
          out = widgets.Output(layout={'border': '1px solid black'})
          hb = widgets.HBox([vn, active])
          vb = widgets.VBox([hb, out])
          display(vb)
          self._display_thread = threading.Thread(target=lambda: self._display(out, duration, period, active))
          self._display_thread.start()
docs: 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