Skip to content

Commit 7543723

Browse files
authored
Merge pull request #156 from krassowski/release/0.7.0
Release 0.7.0
2 parents f8eaa9a + 511f625 commit 7543723

File tree

9 files changed

+113
-17
lines changed

9 files changed

+113
-17
lines changed

CHANGELOG.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,16 @@
99
[#140](https://github.com/krassowski/jupyterlab-lsp/pull/140)
1010
)
1111

12-
## `@krassowski/jupyterlab-lsp 0.7.0-rc.1`
12+
## `@krassowski/jupyterlab-lsp 0.7.0`
1313

1414
- features
1515

16-
- reduced space taken up by the statusbar indicator
17-
- implemented statusbar popover with connections statuses
16+
- reduced space taken up by the statusbar indicator (
17+
[#106](https://github.com/krassowski/jupyterlab-lsp/pull/106)
18+
)
19+
- implemented statusbar popover with connections statuses (
20+
[#106](https://github.com/krassowski/jupyterlab-lsp/pull/106)
21+
)
1822
- generates types for server data responses from JSON schema (
1923
[#110](https://github.com/krassowski/jupyterlab-lsp/pull/110)
2024
)

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,20 @@ Advanced static-analysis autocompletion without a running kernel
5858
> dict and columns of a DataFrame autocompletion) are merged with the suggestions
5959
> from the Language Server (currently only in notebook).
6060
61+
### Rename
62+
63+
Rename variables, functions and more, in both: notebooks and the file editor.
64+
Use the context menu option or the <kbd>F2</kbd> shortcut to invoke.
65+
66+
![rename](https://raw.githubusercontent.com/krassowski/jupyterlab-lsp/master/examples/screenshots/rename.png)
67+
68+
### Diagnostics panel
69+
70+
Sort and jump between the diagnostics using the diagnostics panel.
71+
Open it searching for "Show diagnostics panel" in JupyterLab commands palette or from the context menu.
72+
73+
![panel](https://raw.githubusercontent.com/krassowski/jupyterlab-lsp/master/examples/screenshots/panel.png)
74+
6175
## Prerequisites
6276

6377
Either:

ROADMAP.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
- system of settings, including options:
1111
- to enable aggressive autocompletion (like in hinterland)
1212
- to change the verbosity of signature hints (whether to show documentation, number of lines to be shown)
13-
- "rename" action in notebooks
14-
- gutter with linter results (low priority)
13+
- custom foreign extractors allowing to customize behaviour for magics
14+
- code actions (allowing to "quick fix" a typo, etc.)
15+
- gutter with linter results
1516
- use the kernel session for autocompletion in FileEditor if available (PR welcome)
1617

1718
## Backend

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ variables:
1414
YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn
1515

1616
PY_JLSP_VERSION: 0.7.0b0
17-
JS_JLLSP_VERSION: 0.7.0-rc.1
17+
JS_JLLSP_VERSION: 0.7.0
1818

1919
FIRST_PARTY_LABEXTENSIONS: >-
2020
packages/jupyterlab-lsp/krassowski-jupyterlab-lsp-$(JS_JLLSP_VERSION).tgz

examples/Python.ipynb

Lines changed: 86 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"cell_type": "markdown",
3030
"metadata": {},
3131
"source": [
32-
"Hover over `square` and see an underline appear; press `Ctrl` to display tooltip with the docstring."
32+
"Hover over `square` and see an underline appear; press <kbd>Ctrl</kbd> to display tooltip with the docstring."
3333
]
3434
},
3535
{
@@ -68,7 +68,7 @@
6868
"cell_type": "markdown",
6969
"metadata": {},
7070
"source": [
71-
"You can also hover over statistics and mean (while holding `Ctrl`) to see the documentation of those."
71+
"You can also hover over `statistics` and `mean` (while holding <kbd>Ctrl</kbd>) to see the documentation of those."
7272
]
7373
},
7474
{
@@ -77,24 +77,26 @@
7777
"metadata": {},
7878
"outputs": [
7979
{
80-
"ename": "SyntaxError",
81-
"evalue": "invalid syntax (<ipython-input-4-23d47aab6817>, line 1)",
80+
"ename": "NameError",
81+
"evalue": "name 'undefined_variable' is not defined",
8282
"output_type": "error",
8383
"traceback": [
84-
"\u001b[0;36m File \u001b[0;32m\"<ipython-input-4-23d47aab6817>\"\u001b[0;36m, line \u001b[0;32m1\u001b[0m\n\u001b[0;31m if there is invalid syntax:\u001b[0m\n\u001b[0m ^\u001b[0m\n\u001b[0;31mSyntaxError\u001b[0m\u001b[0;31m:\u001b[0m invalid syntax\n"
84+
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
85+
"\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)",
86+
"\u001b[0;32m<ipython-input-4-4c6d5bf4bce5>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mundefined_variable\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
87+
"\u001b[0;31mNameError\u001b[0m: name 'undefined_variable' is not defined"
8588
]
8689
}
8790
],
8891
"source": [
89-
"if there is invalid syntax:\n",
90-
" pass"
92+
"undefined_variable"
9193
]
9294
},
9395
{
9496
"cell_type": "markdown",
9597
"metadata": {},
9698
"source": [
97-
"you will see red underline (\"invalid\" and \"syntax\" above are two expressions which canno be place next to each other without an operator)"
99+
"you will see red underline for an undefined variable (example above) or for an invalid syntax."
98100
]
99101
},
100102
{
@@ -147,6 +149,22 @@
147149
"Empty cells will cause \"too many blank lines\" warning as each cell is padded with two new lines. If we remove the blank cell, everything will be perfect!"
148150
]
149151
},
152+
{
153+
"cell_type": "markdown",
154+
"metadata": {},
155+
"source": [
156+
"#### Diagnostics Panel"
157+
]
158+
},
159+
{
160+
"cell_type": "markdown",
161+
"metadata": {},
162+
"source": [
163+
"Search for \"Show diagnostics panel\" in the commands palette, or invoke it from the context menu to display all the diagnostics from the file in one place.\n",
164+
"\n",
165+
"The diagnostics panel allows you to sort the inspections and go to the respective locations in the code (just click on the row of interest)."
166+
]
167+
},
150168
{
151169
"cell_type": "markdown",
152170
"metadata": {},
@@ -213,6 +231,65 @@
213231
"source": [
214232
"Cat"
215233
]
234+
},
235+
{
236+
"cell_type": "markdown",
237+
"metadata": {},
238+
"source": [
239+
"### Rename"
240+
]
241+
},
242+
{
243+
"cell_type": "markdown",
244+
"metadata": {},
245+
"source": [
246+
"You can rename symbols by pressing <kbd>F2</kbd> or selecting rename option from the context menu.\n",
247+
"\n",
248+
"If you rename the `test` variable below to `test2`, both occurrences (in the two following cells) will be updated:"
249+
]
250+
},
251+
{
252+
"cell_type": "code",
253+
"execution_count": null,
254+
"metadata": {},
255+
"outputs": [],
256+
"source": [
257+
"test = 1"
258+
]
259+
},
260+
{
261+
"cell_type": "code",
262+
"execution_count": null,
263+
"metadata": {},
264+
"outputs": [],
265+
"source": [
266+
"test"
267+
]
268+
},
269+
{
270+
"cell_type": "markdown",
271+
"metadata": {},
272+
"source": [
273+
"However, a local reference from a different scope (inside the `abc()` function) will be unafected:"
274+
]
275+
},
276+
{
277+
"cell_type": "code",
278+
"execution_count": null,
279+
"metadata": {},
280+
"outputs": [],
281+
"source": [
282+
"def abc():\n",
283+
" test = 2\n",
284+
" test"
285+
]
286+
},
287+
{
288+
"cell_type": "markdown",
289+
"metadata": {},
290+
"source": [
291+
"Which is different to the simplistic behaviour of the built-in search-and-replace function."
292+
]
216293
}
217294
],
218295
"metadata": {
@@ -231,7 +308,7 @@
231308
"name": "python",
232309
"nbconvert_exporter": "python",
233310
"pygments_lexer": "ipython3",
234-
"version": "3.7.2"
311+
"version": "3.8.0"
235312
}
236313
},
237314
"nbformat": 4,

examples/screenshots/panel.png

19 KB
Loading

examples/screenshots/rename.png

21.6 KB
Loading

packages/jupyterlab-lsp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@krassowski/jupyterlab-lsp",
3-
"version": "0.7.0-rc.1",
3+
"version": "0.7.0",
44
"description": "Language Server Protocol integration for JupyterLab",
55
"keywords": [
66
"jupyter",

packages/metapackage/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@krassowski/jupyterlab-lsp-metapackage",
3-
"version": "0.7.0-rc.1",
3+
"version": "0.7.0",
44
"description": "JupyterLab LSP - Meta Package. All of the packages used by JupyterLab LSP",
55
"homepage": "https://github.com/krassowski/jupyterlab-lsp",
66
"bugs": {

0 commit comments

Comments
 (0)