You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,6 +93,14 @@ For example to override settings for the `autopep8` formatter, enter something l
93
93
94
94
:::{warning}
95
95
This plugin does not pick up file based configuration at the moment (e.g. setup.cfg, pyproject.yml, etc.)
96
+
97
+
Ticket is already opened at [#167](https://github.com/ryantam626/jupyterlab_code_formatter/issues/167).
98
+
:::
99
+
100
+
:::{warning}
101
+
This plugin might be out of sync with the list of possibilities of configuration option.
102
+
103
+
See [settings.json](https://github.com/ryantam626/jupyterlab_code_formatter/blob/master/schema/settings.json) for the JSON schema used, feel free to open a PR for updating it.
sudo sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin
7
-
```
5
+
- Install [task](https://taskfile.dev);
6
+
- Install docker, with buildkit;
8
7
9
-
2. Build docker image for dev
8
+
1. Spin up docker compose based dev env - `task dev:up`
9
+
2. Run `jlpm watch` inside dev container - `task dev:jlpm-watch`
10
+
3. In another terminal, run `jupyter lab` inside dev container - `task dev:jupyter-lab`
10
11
11
-
```bash
12
-
task dev:build
13
-
```
12
+
This watches the source directory and run JupyterLab at the same time in different terminals to watch for changes in the
13
+
extension's source and automatically rebuild the extension inside the dev docker container.
14
14
15
-
3. Obtain a shell
16
-
17
-
```bash
18
-
task dev:shell
19
-
# NOTE: If you have a running container already, use the following instead
20
-
task dev:shell-reuse
21
-
```
22
-
23
-
4. Live compilation of Lab Extension
24
-
25
-
Assume you have a shell in dev container, do
26
-
27
-
```bash
28
-
jlpm run build
29
-
jlpm run watch
30
-
```
31
-
32
-
5. Start JupyterLab
33
-
34
-
Do this in another terminal.
35
-
36
-
Assume you have a shell in dev container, do
37
-
38
-
````{tab} Watch mode
39
-
```bash
40
-
# NOTE: This might take a little while...
41
-
./dev/start-jupyterlab.sh --watch
42
-
```
43
-
````
44
-
45
-
````{tab} Non-watch mode
46
-
```bash
47
-
./dev/start-jupyterlab.sh
48
-
```
49
-
````
15
+
With the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).
Copy file name to clipboardExpand all lines: docs/usage.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ Here is a non-exhaustive list of possibilities:
14
14
15
15
These commands invoke the specified code formatter in the current focused cell.
16
16
17
-
To find out what formatters are available, you can query http://localhost:8888/jupyterlab_code_formatter/formatters?bypassVersionCheck=1 (you might need to replace the port and address), the keys of formatter are shown there.
17
+
To find out what formatters are available, you can query http://localhost:8888/jupyterlab_code_formatter/formatters (you might need to replace the port and address), the keys of formatter are shown there.
0 commit comments