[ 
https://issues.apache.org/jira/browse/BEAM-6557?focusedWorklogId=197266&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-197266
 ]

ASF GitHub Bot logged work on BEAM-6557:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 11/Feb/19 23:50
            Start Date: 11/Feb/19 23:50
    Worklog Time Spent: 10m 
      Work Description: melap commented on pull request #7679: [BEAM-6557] Adds 
notebooks for quickstarts and custom I/O
URL: https://github.com/apache/beam/pull/7679#discussion_r255267225
 
 

 ##########
 File path: website/src/documentation/io/developing-io-overview.md
 ##########
 @@ -58,6 +58,33 @@ Beam source:
 cases where you might want to use a `Source` (such as
 [dynamic work rebalancing]({{ site.baseurl 
}}/blog/2016/05/18/splitAtFraction-method.html)).
 
+```
+import apache_beam as beam
+import logging
+
+def count(n):
+  for i in range(n):
+    yield i
+
+# Running locally in the DirectRunner.
+with beam.Pipeline() as pipeline:
+  (
+      pipeline
+      | 'Create inputs' >> beam.Create([10])
+      | 'Generate elements' >> beam.ParDo(count)
+      | 'Inspect elements' >> beam.Map(logging.warning)
+  )
+```
+
+<a class="button button--primary" target="_blank"
+  
href="https://colab.research.google.com/drive/1r-o2QJ-D-I0TV4NIQR6pAN2t4Pxt2-Ey";>
+  Run code in Google Colab
+</a>
+<a class="button button--primary" target="_blank"
+  
href="https://github.com/apache/beam/blob/master/examples/python/notebooks/io/custom-inputs-pardo.ipynb";>
+  View source on GitHub
 
 Review comment:
   general comment for all these: perhaps for all of these source buttons add 
"notebook"?  "View notebook source on GitHub" ? as it's not an actual source 
code file
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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: 197266)
    Time Spent: 0.5h  (was: 20m)

> Add IPython notebooks for quickstarts and custom I/O
> ----------------------------------------------------
>
>                 Key: BEAM-6557
>                 URL: https://issues.apache.org/jira/browse/BEAM-6557
>             Project: Beam
>          Issue Type: Improvement
>          Components: website
>            Reporter: David Cavazos
>            Assignee: David Cavazos
>            Priority: Minor
>              Labels: triaged
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to