Skip to content

Commit

Permalink
refs lablup/backend.ai-integration-jupyter#2: Update auto-completion …
Browse files Browse the repository at this point in the history
…API as implemented.
  • Loading branch information
achimnol committed Apr 19, 2017
1 parent 4f32404 commit 9381638
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions docs/api/exec.rst
Original file line number Diff line number Diff line change
Expand Up @@ -299,15 +299,15 @@ Parameters
- The kernel ID.
* - ``mode``
- A constant string ``"complete"``.
* - ``preCode``
* - ``code``
- A string containing the code until the current cursor position.
* - ``postCode``
* - ``options.post``
- A string containing the code after the current cursor position.
* - ``line``
* - ``options.line``
- A string containing the content of the current line.
* - ``row``
* - ``options.row``
- An integer indicating the line number (0-based) of the cursor.
* - ``col``
* - ``options.col``
- An integer indicating the column number (0-based) in the current line of the cursor.

**Example:**
Expand All @@ -316,11 +316,13 @@ Parameters
{
"type": "complete",
"preCode": "pri",
"postCode": "\nprint(\"world\")\n",
"line": "pri",
"row": 0,
"col": 3
"code": "pri",
"options": {
"post": "\nprint(\"world\")\n",
"line": "pri",
"row": 0,
"col": 3
}
}
Response
Expand Down

0 comments on commit 9381638

Please sign in to comment.