> For the complete documentation index, see [llms.txt](https://george-jen.gitbook.io/data-science-and-apache-spark/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://george-jen.gitbook.io/data-science-and-apache-spark/window-dstream-print-n.md).

# Window DStream print(n)

### print(n)

Prints the first ten elements (default to 10) of every batch of data in a DStream on the driver node running the streaming application. This is useful for development and debugging.

Python API This is called pprint() in the Python API.

Example:

```
messages4.print()

ssc.start()
ssc.awaitTermination()
```
