Skip to content

Commit 2facfb3

Browse files
Optionally depend on server ydoc and docprovider (#21)
* Replace optional dependency on entire `jupyter-collaboration` package with only the packages which are needed * Mention `[lab]` extras in readme * Fix missing space --------- Co-authored-by: Frédéric Collonval <[email protected]>
1 parent 9203802 commit 2facfb3

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,13 @@ for the frontend extension.
1717

1818
## Install
1919

20-
To install the extension, execute:
20+
To install the extension for use in JupyterLab or Notebook 7, execute:
21+
22+
```bash
23+
pip install jupyter_server_nbmodel[lab]
24+
```
25+
26+
For API-only use:
2127

2228
```bash
2329
pip install jupyter_server_nbmodel

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ dependencies = [
2929
dynamic = ["version", "description", "authors", "urls", "keywords"]
3030

3131
[project.optional-dependencies]
32-
# FIXME we should be able to only use the server part without UI
33-
rtc = ["jupyterlab>=4.2.0", "jupyter_collaboration>=3.0.0b0"]
32+
lab = ["jupyterlab>=4.2.0", "jupyter-docprovider>=1.0.0b1", "jupyter-server-ydoc>=1.0.0b1"]
3433
test = ["pytest~=8.2", "pytest-cov", "pytest-jupyter[server]>=0.6", "pytest-timeout"]
3534
lint = ["mdformat>0.7", "mdformat-gfm>=0.3.5", "ruff>=0.4.0"]
3635
typing = ["mypy>=0.990"]

0 commit comments

Comments
 (0)