[ https://issues.apache.org/jira/browse/BEAM-7926?focusedWorklogId=397099&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-397099 ]
ASF GitHub Bot logged work on BEAM-7926: ---------------------------------------- Author: ASF GitHub Bot Created on: 03/Mar/20 22:50 Start Date: 03/Mar/20 22:50 Worklog Time Spent: 10m Work Description: KevinGG commented on pull request #11020: [BEAM-7926] Update Data Visualization URL: https://github.com/apache/beam/pull/11020#discussion_r387285131 ########## File path: sdks/python/apache_beam/runners/interactive/interactive_beam.py ########## @@ -86,10 +85,57 @@ def capture_duration(self, value): # The next PCollection evaluation will capture fresh data from sources, # and the data captured will be replayed until another eviction. """ + assert value.total_seconds() > 0, 'Duration must be a positive value.' self.capture_control._capture_duration = value # TODO(BEAM-8335): add capture_size options when they are supported. + @property + def display_timestamp_format(self): + """The format in which timestamps are displayed. + + Default is '%Y-%m-%d %H:%M:%S.%f%z', e.g. 2020-02-01 15:05:06.000015-08:00. Review comment: docstrings in this module are for notebook users. So keeping them here allows `Shift+Tab` in notebooks to invoke the docstrings pop up. They function as in-notebook user guide. The default is defined in the `interactive_options` module where we hide the implementation details that are not exposed APIs. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 397099) Time Spent: 51h 20m (was: 51h 10m) > Show PCollection with Interactive Beam in a data-centric user flow > ------------------------------------------------------------------ > > Key: BEAM-7926 > URL: https://issues.apache.org/jira/browse/BEAM-7926 > Project: Beam > Issue Type: New Feature > Components: runner-py-interactive > Reporter: Ning Kang > Assignee: Ning Kang > Priority: Major > Time Spent: 51h 20m > Remaining Estimate: 0h > > Support auto plotting / charting of materialized data of a given PCollection > with Interactive Beam. > Say an Interactive Beam pipeline defined as > > {code:java} > p = beam.Pipeline(InteractiveRunner()) > pcoll = p | 'Transform' >> transform() > pcoll2 = ... > pcoll3 = ...{code} > The use can call a single function and get auto-magical charting of the data. > e.g., > {code:java} > show(pcoll, pcoll2) > {code} > Throughout the process, a pipeline fragment is built to include only > transforms necessary to produce the desired pcolls (pcoll and pcoll2) and > execute that fragment. > This makes the Interactive Beam user flow data-centric. > > Detailed > [design|https://docs.google.com/document/d/1DYWrT6GL_qDCXhRMoxpjinlVAfHeVilK5Mtf8gO6zxQ/edit#heading=h.v6k2o3roarzz]. -- This message was sent by Atlassian Jira (v8.3.4#803005)