@@ -5,7 +5,8 @@ Synchronous query
55*****************
66
77Following example presents how to execute simple, synchronous query against a remote q process:
8- ::
8+
9+ .. code :: python
910
1011 from qpython import qconnection
1112
@@ -50,7 +51,8 @@ Asynchronous query
5051******************
5152
5253Following example presents how to execute simple, asynchronous query against a remote q process:
53- ::
54+
55+ .. code :: python
5456
5557 import random
5658 import threading
@@ -130,7 +132,8 @@ Interactive console
130132*******************
131133
132134This example depicts how to create a simple interactive console for communication with a q process:
133- ::
135+
136+ .. code :: python
134137
135138 from qpython import qconnection
136139 from qpython.qtype import QException
@@ -163,7 +166,11 @@ Twisted integration
163166*******************
164167
165168This example presents how the `qPython ` can be used along with `Twisted `_ to build asynchronous client:
166- ::
169+
170+ .. note ::
171+ This sample code overwrites `.u.sub ` and `.z.ts ` functions on q process.
172+
173+ .. code :: python
167174
168175 import struct
169176 import sys
@@ -315,7 +322,8 @@ Subscribing to tick service
315322***************************
316323
317324This example depicts how to subscribe to standard kdb+ tickerplant service:
318- ::
325+
326+ .. code :: python
319327
320328 import numpy
321329 import threading
@@ -386,7 +394,8 @@ Data publisher
386394**************
387395
388396This example shows how to stream data to the kdb+ process using standard tickerplant API:
389- ::
397+
398+ .. code :: python
390399
391400 import datetime
392401 import numpy
@@ -458,4 +467,4 @@ This example shows how to stream data to the kdb+ process using standard tickerp
458467 t.join()
459468
460469
461- .. _Twisted : http://twistedmatrix.com/trac/
470+ .. _Twisted : http://twistedmatrix.com/trac/
0 commit comments