Skip to content

Commit

Permalink
docs: Add a note about jupytext and jupyter-fs compatbility
Browse files Browse the repository at this point in the history
Signed-off-by: Mahendra Paipuri <[email protected]>
  • Loading branch information
mahendrapaipuri committed Jul 7, 2024
1 parent cf5395a commit 303c8fb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,17 @@ If you don't have the notebook icon on text documents after a fresh restart of y
jupyter serverextension enable jupytext
```

When [`jupyter-fs>=1.0.0`](https://github.com/jpmorganchase/jupyter-fs) is being used along with `jupytext`, use `SyncMetaManager` as the contents manager for `jupyter-fs` as `jupytext` do not support async contents manager which is used in default `MetaManager` of `jupyter-fs`. The `jupyter-fs` config must be as follows:

```json
{
"ServerApp": {
"contents_manager_class": "jupyterfs.metamanager.SyncMetaManager",
}
}
```
so that `jupytext` will create its own contents manager derived from `SyncMetaManager`.

## Jupytext commands in JupyterLab

Jupytext comes with a frontend extension for JupyterLab which provides pairing commands (accessible with View / Activate Command Palette, or Ctrl+Shift+C):
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ test-external = [
"pre-commit",
# Interaction with other contents managers
# Starting with jupyter-fs==1.0.0, there is SyncMetaManager available
# Bump to 1.0.1 once it is released which has some important bugfixes
"jupyter-fs==1.0.0"
]
# Coverage requirements
Expand Down

0 comments on commit 303c8fb

Please sign in to comment.