Skip to content

Commit 423ee60

Browse files
committed
Merge branch 'master' of github.com:exxeleron/qPython
2 parents 930cfcc + 2f84cbc commit 423ee60

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

doc/source/usage-examples.rst

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ Synchronous query
55
*****************
66

77
Following 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

5253
Following 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

132134
This 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

165168
This 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

317324
This 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

388396
This 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

Comments
 (0)