| Name | jupyter-server-documents JSON | 
            
| Version | 
                  0.1.0a8
                   
                  JSON | 
            
 | download  | 
            
| home_page | None  | 
            
| Summary | A JupyterLab extension that provides RTC capabilities. | 
            | upload_time | 2025-10-23 23:35:45 | 
            | maintainer | None | 
            
            | docs_url | None | 
            | author | None | 
            
            | requires_python | >=3.9 | 
            
            
            | license | BSD 3-Clause License
        
        Copyright (c) 2025, Project Jupyter
        All rights reserved.
        
        Redistribution and use in source and binary forms, with or without
        modification, are permitted provided that the following conditions are met:
        
        1. Redistributions of source code must retain the above copyright notice, this
           list of conditions and the following disclaimer.
        
        2. Redistributions in binary form must reproduce the above copyright notice,
           this list of conditions and the following disclaimer in the documentation
           and/or other materials provided with the distribution.
        
        3. Neither the name of the copyright holder nor the names of its
           contributors may be used to endorse or promote products derived from
           this software without specific prior written permission.
        
        THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
        AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
        IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
        DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
        FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
        DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
        SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
        CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
        OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
        OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 
            | keywords | 
                
                    jupyter
                
                     jupyterlab
                
                     jupyterlab-extension
                 | 
            | VCS | 
                
                     | 
                
            
            | bugtrack_url | 
                
                 | 
             
            
            | requirements | 
                
                  No requirements were recorded.
                
             | 
            
| Travis-CI | 
                
                   No Travis.
                
             | 
            | coveralls test coverage | 
                
                   No coveralls.
                
             | 
        
        
            
            # Jupyter Server Documents
This extension is composed of a Python package named `jupyter_server_documents`
for the server extension and a NPM package named `@jupyter-ai-contrib/server-documents`
for the frontend extension.
## Overview
Jupyter Server Documents is a powerful extension for JupyterLab that enhances your notebook experience by moving the state of documents to the server. Key features include:
### Real-Time Collaboration
- New, optimized real-time collabortion engine for Jupyter Server
- Significant performance and memory usage improvements
- Proper handling of out-of-band changes (e.g. `git checkout`)
- No data loss or duplication
### Enhanced Performance
- Optimized memory usage through intelligent output management
- Significantly faster loading of notebooks with large outputs
- Reduced memory footprint for notebooks with extensive output data
- Automatic saving of changes to prevent data loss
### Improved Kernel Management
- More reliable kernel execution and connection handling
- Enhanced stability with better error recovery mechanisms
- Streamlined message handling between kernels and the frontend
- Improved kernel restart and reconnection capabilities
### Efficient Output Handling
- Smart output storage separates large outputs from notebook documents
- Output streaming controls prevent memory issues with unbounded outputs
- Faster notebook navigation even with extensive computational outputs
- Lazy loading of outputs for improved responsiveness
This extension provides the foundation for a more collaborative, stable, and performant JupyterLab experience, especially valuable for data scientists and researchers working with complex notebooks or in team environments.
## Requirements
- JupyterLab >= 4.4.0
## Installation
To install the extension, run:
```bash
pip install jupyter_server_documents
```
To remove the extension, run:
```bash
pip uninstall jupyter_server_documents
```
## Contributing
### Setting up a development environment
We recommend using
[Micromamba](https://mamba.readthedocs.io/en/latest/user_guide/micromamba.html)
to create and manage a custom Python environment for developing this package.
Micromamba provides most of the same CLI as Conda, but works much faster.
First, set up a development environment by running this command from the root of
this repository:
```sh
micromamba env create -f dev-environment.yml
```
This creates a new Python environment named `serverdocs` and automatically installs
this extension's build dependencies, required for local development. Then,
activate the environment:
```sh
micromamba activate serverdocs
```
Activating an environment is required to access any Python packages installed in
that environment. You should activate the environment before developing any
changes to the `jupyter_server_documents` package locally.
### Development install
After ensuring that the `serverdocs` environment is activated, you can install an
editable copy of `jupyter_server_documents` into your environment by running the script
below.
```bash
jlpm dev:install
```
Notes about the development installation:
- `jlpm` is JupyterLab's pinned version of [yarn](https://yarnpkg.com/) that is
  installed with JupyterLab. In other words, `jlpm` can be considered an alias of
  `yarn`.
- `jlpm dev:install` runs the `dev:install` NPM script defined in `package.json`.
- The `dev:install` step uses [`uv`](https://docs.astral.sh/uv/) as a faster,
  more modern replacement for `pip`.
After completing this, you should have a working, editable copy of
`jupyter_server_documents` in your environment. Run `jupyter lab` and open JupyterLab in
a browser to verify that `jupyter_server_documents` is installed.
### Development process
When making new changes to your local copy of `jupyter_server_documents`, different
commands need to be run depending on the types of changes made. Without running
these commands, the new changes are not reflected in JupyterLab.
Here is a summary of the commands to run after making changes:
- After updating `package.json` or `yarn.lock`: run `jlpm install` to install
  the frontend dependencies.
- After updating any frontend (TS/TSX/JS/CSS): run `jlpm build` to build the lab
  extension (i.e. the frontend).
- After updating any backend (Python) file: restart the server to reload the
  server extension (i.e. the backend).
  - Note that there is no build process when updating a Python file, since
    Python is a scripting language.
- After updating entry points or other package metadata in `pyproject.toml`: run
  `jlpm dev:uninstall && jlpm dev:install` to re-do the development installation.
  The package metadata is not updated automatically after local changes, even when
  installing the package in editable mode.
- Finally, refresh the JupyterLab page in the browser to load the new
  frontend assets and use the new backend.
### Building on change (frontend only)
You can watch the source directory and run JupyterLab at the same time in
different terminals to watch for changes in the extension's source and
automatically rebuild the extension.
```bash
# Watch the source directory in one terminal, automatically rebuilding when needed
jlpm watch
# Run JupyterLab in another terminal
jupyter lab
```
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).
By default, the `jlpm build` command generates the source maps for this
extension to make it easier to debug using the browser dev tools. To also
generate source maps for the JupyterLab core extensions, you can run the
following command:
```bash
jupyter lab build --minimize=False
```
Note that the steps described here only update the application in response to
changes to frontend (TypeScript) files. Changes to any backend (Python) files
still require restarting the Jupyter Server.
### Development uninstall
To undo the development installation, run this command:
```bash
jlpm dev:uninstall
```
In development mode, you will also need to remove the symlink created by
`jupyter labextension develop` command. To find its location, you can run
`jupyter labextension list` to figure out where the `labextensions` folder is
located. Then you can remove the symlink named `@jupyter-ai-contrib/server-documents` within that
folder.
### Testing the extension
#### Server tests
This extension is using [Pytest](https://docs.pytest.org/) for Python code testing.
Install test dependencies (needed only once):
```sh
pip install -e ".[test]"
# Each time you install the Python package, you need to restore the front-end extension link
jupyter labextension develop . --overwrite
```
To execute them, run:
```sh
pytest -vv -r ap --cov jupyter_server_documents
```
#### Frontend tests
This extension is using [Jest](https://jestjs.io/) for JavaScript code testing.
To execute them, execute:
```sh
jlpm
jlpm test
```
#### Integration tests
This extension uses [Playwright](https://playwright.dev/docs/intro) for the integration tests (aka user level tests).
More precisely, the JupyterLab helper [Galata](https://github.com/jupyterlab/jupyterlab/tree/master/galata) is used to handle testing the extension in JupyterLab.
More information are provided within the [ui-tests](./ui-tests/README.md) README.
### Packaging the extension
See [RELEASE](RELEASE.md)
## Troubleshooting
If you are seeing the frontend extension, but it is not working, check
that the server extension is enabled:
```bash
jupyter server extension list
```
If the server extension is installed and enabled, but you are not seeing
the frontend extension, check the frontend extension is installed:
```bash
jupyter labextension list
```
            
         
        Raw data
        
            {
    "_id": null,
    "home_page": null,
    "name": "jupyter-server-documents",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "jupyter, jupyterlab, jupyterlab-extension",
    "author": null,
    "author_email": "Project Jupyter <jupyter@googlegroups.com>",
    "download_url": "https://files.pythonhosted.org/packages/a3/bf/671c297f4ad66695d4852f571fc98b7ee28800c6e3274e05369192f93b51/jupyter_server_documents-0.1.0a8.tar.gz",
    "platform": null,
    "description": "# Jupyter Server Documents\n\nThis extension is composed of a Python package named `jupyter_server_documents`\nfor the server extension and a NPM package named `@jupyter-ai-contrib/server-documents`\nfor the frontend extension.\n\n## Overview\n\nJupyter Server Documents is a powerful extension for JupyterLab that enhances your notebook experience by moving the state of documents to the server. Key features include:\n\n### Real-Time Collaboration\n\n- New, optimized real-time collabortion engine for Jupyter Server\n- Significant performance and memory usage improvements\n- Proper handling of out-of-band changes (e.g. `git checkout`)\n- No data loss or duplication\n\n### Enhanced Performance\n\n- Optimized memory usage through intelligent output management\n- Significantly faster loading of notebooks with large outputs\n- Reduced memory footprint for notebooks with extensive output data\n- Automatic saving of changes to prevent data loss\n\n### Improved Kernel Management\n\n- More reliable kernel execution and connection handling\n- Enhanced stability with better error recovery mechanisms\n- Streamlined message handling between kernels and the frontend\n- Improved kernel restart and reconnection capabilities\n\n### Efficient Output Handling\n\n- Smart output storage separates large outputs from notebook documents\n- Output streaming controls prevent memory issues with unbounded outputs\n- Faster notebook navigation even with extensive computational outputs\n- Lazy loading of outputs for improved responsiveness\n\nThis extension provides the foundation for a more collaborative, stable, and performant JupyterLab experience, especially valuable for data scientists and researchers working with complex notebooks or in team environments.\n\n## Requirements\n\n- JupyterLab >= 4.4.0\n\n## Installation\n\nTo install the extension, run:\n\n```bash\npip install jupyter_server_documents\n```\n\nTo remove the extension, run:\n\n```bash\npip uninstall jupyter_server_documents\n```\n\n## Contributing\n\n### Setting up a development environment\n\nWe recommend using\n[Micromamba](https://mamba.readthedocs.io/en/latest/user_guide/micromamba.html)\nto create and manage a custom Python environment for developing this package.\nMicromamba provides most of the same CLI as Conda, but works much faster.\n\nFirst, set up a development environment by running this command from the root of\nthis repository:\n\n```sh\nmicromamba env create -f dev-environment.yml\n```\n\nThis creates a new Python environment named `serverdocs` and automatically installs\nthis extension's build dependencies, required for local development. Then,\nactivate the environment:\n\n```sh\nmicromamba activate serverdocs\n```\n\nActivating an environment is required to access any Python packages installed in\nthat environment. You should activate the environment before developing any\nchanges to the `jupyter_server_documents` package locally.\n\n### Development install\n\nAfter ensuring that the `serverdocs` environment is activated, you can install an\neditable copy of `jupyter_server_documents` into your environment by running the script\nbelow.\n\n```bash\njlpm dev:install\n```\n\nNotes about the development installation:\n\n- `jlpm` is JupyterLab's pinned version of [yarn](https://yarnpkg.com/) that is\n  installed with JupyterLab. In other words, `jlpm` can be considered an alias of\n  `yarn`.\n\n- `jlpm dev:install` runs the `dev:install` NPM script defined in `package.json`.\n\n- The `dev:install` step uses [`uv`](https://docs.astral.sh/uv/) as a faster,\n  more modern replacement for `pip`.\n\nAfter completing this, you should have a working, editable copy of\n`jupyter_server_documents` in your environment. Run `jupyter lab` and open JupyterLab in\na browser to verify that `jupyter_server_documents` is installed.\n\n### Development process\n\nWhen making new changes to your local copy of `jupyter_server_documents`, different\ncommands need to be run depending on the types of changes made. Without running\nthese commands, the new changes are not reflected in JupyterLab.\n\nHere is a summary of the commands to run after making changes:\n\n- After updating `package.json` or `yarn.lock`: run `jlpm install` to install\n  the frontend dependencies.\n\n- After updating any frontend (TS/TSX/JS/CSS): run `jlpm build` to build the lab\n  extension (i.e. the frontend).\n\n- After updating any backend (Python) file: restart the server to reload the\n  server extension (i.e. the backend).\n\n  - Note that there is no build process when updating a Python file, since\n    Python is a scripting language.\n\n- After updating entry points or other package metadata in `pyproject.toml`: run\n  `jlpm dev:uninstall && jlpm dev:install` to re-do the development installation.\n  The package metadata is not updated automatically after local changes, even when\n  installing the package in editable mode.\n\n- Finally, refresh the JupyterLab page in the browser to load the new\n  frontend assets and use the new backend.\n\n### Building on change (frontend only)\n\nYou can watch the source directory and run JupyterLab at the same time in\ndifferent terminals to watch for changes in the extension's source and\nautomatically rebuild the extension.\n\n```bash\n# Watch the source directory in one terminal, automatically rebuilding when needed\njlpm watch\n# Run JupyterLab in another terminal\njupyter lab\n```\n\nWith the watch command running, every saved change will immediately be built\nlocally and available in your running JupyterLab. Refresh JupyterLab to load the\nchange in your browser (you may need to wait several seconds for the extension\nto be rebuilt).\n\nBy default, the `jlpm build` command generates the source maps for this\nextension to make it easier to debug using the browser dev tools. To also\ngenerate source maps for the JupyterLab core extensions, you can run the\nfollowing command:\n\n```bash\njupyter lab build --minimize=False\n```\n\nNote that the steps described here only update the application in response to\nchanges to frontend (TypeScript) files. Changes to any backend (Python) files\nstill require restarting the Jupyter Server.\n\n### Development uninstall\n\nTo undo the development installation, run this command:\n\n```bash\njlpm dev:uninstall\n```\n\nIn development mode, you will also need to remove the symlink created by\n`jupyter labextension develop` command. To find its location, you can run\n`jupyter labextension list` to figure out where the `labextensions` folder is\nlocated. Then you can remove the symlink named `@jupyter-ai-contrib/server-documents` within that\nfolder.\n\n### Testing the extension\n\n#### Server tests\n\nThis extension is using [Pytest](https://docs.pytest.org/) for Python code testing.\n\nInstall test dependencies (needed only once):\n\n```sh\npip install -e \".[test]\"\n# Each time you install the Python package, you need to restore the front-end extension link\njupyter labextension develop . --overwrite\n```\n\nTo execute them, run:\n\n```sh\npytest -vv -r ap --cov jupyter_server_documents\n```\n\n#### Frontend tests\n\nThis extension is using [Jest](https://jestjs.io/) for JavaScript code testing.\n\nTo execute them, execute:\n\n```sh\njlpm\njlpm test\n```\n\n#### Integration tests\n\nThis extension uses [Playwright](https://playwright.dev/docs/intro) for the integration tests (aka user level tests).\nMore precisely, the JupyterLab helper [Galata](https://github.com/jupyterlab/jupyterlab/tree/master/galata) is used to handle testing the extension in JupyterLab.\n\nMore information are provided within the [ui-tests](./ui-tests/README.md) README.\n\n### Packaging the extension\n\nSee [RELEASE](RELEASE.md)\n\n## Troubleshooting\n\nIf you are seeing the frontend extension, but it is not working, check\nthat the server extension is enabled:\n\n```bash\njupyter server extension list\n```\n\nIf the server extension is installed and enabled, but you are not seeing\nthe frontend extension, check the frontend extension is installed:\n\n```bash\njupyter labextension list\n```\n",
    "bugtrack_url": null,
    "license": "BSD 3-Clause License\n        \n        Copyright (c) 2025, Project Jupyter\n        All rights reserved.\n        \n        Redistribution and use in source and binary forms, with or without\n        modification, are permitted provided that the following conditions are met:\n        \n        1. Redistributions of source code must retain the above copyright notice, this\n           list of conditions and the following disclaimer.\n        \n        2. Redistributions in binary form must reproduce the above copyright notice,\n           this list of conditions and the following disclaimer in the documentation\n           and/or other materials provided with the distribution.\n        \n        3. Neither the name of the copyright holder nor the names of its\n           contributors may be used to endorse or promote products derived from\n           this software without specific prior written permission.\n        \n        THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n        AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n        IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n        DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n        FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n        DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n        SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n        CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n        OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n        OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.",
    "summary": "A JupyterLab extension that provides RTC capabilities.",
    "version": "0.1.0a8",
    "project_urls": {
        "Bug Tracker": "https://github.com/jupyter-ai-contrib/jupyter_server_documents/issues",
        "Homepage": "https://github.com/jupyter-ai-contrib/jupyter_server_documents",
        "Repository": "https://github.com/jupyter-ai-contrib/jupyter-server-documents.git"
    },
    "split_keywords": [
        "jupyter",
        " jupyterlab",
        " jupyterlab-extension"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "6b8b3cfb7967d3105e6190b1b67c957b88ece4ea13496a35f5f7f34471416d8a",
                "md5": "bb8d5044e8e35e7a03960aac9c3c35b1",
                "sha256": "df7cb3bdadcf72440fcc7d7e62bafee81fb8d21770afeee7ad5074b2ed1456ba"
            },
            "downloads": -1,
            "filename": "jupyter_server_documents-0.1.0a8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bb8d5044e8e35e7a03960aac9c3c35b1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 234979,
            "upload_time": "2025-10-23T23:35:43",
            "upload_time_iso_8601": "2025-10-23T23:35:43.744386Z",
            "url": "https://files.pythonhosted.org/packages/6b/8b/3cfb7967d3105e6190b1b67c957b88ece4ea13496a35f5f7f34471416d8a/jupyter_server_documents-0.1.0a8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "a3bf671c297f4ad66695d4852f571fc98b7ee28800c6e3274e05369192f93b51",
                "md5": "6116570fb8c1b8dda2a83476d3f9d63a",
                "sha256": "5697bd53c4e4d7a5aa321375b8165be643495ec75d1e4788ecac524b45ac2643"
            },
            "downloads": -1,
            "filename": "jupyter_server_documents-0.1.0a8.tar.gz",
            "has_sig": false,
            "md5_digest": "6116570fb8c1b8dda2a83476d3f9d63a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 423970,
            "upload_time": "2025-10-23T23:35:45",
            "upload_time_iso_8601": "2025-10-23T23:35:45.707147Z",
            "url": "https://files.pythonhosted.org/packages/a3/bf/671c297f4ad66695d4852f571fc98b7ee28800c6e3274e05369192f93b51/jupyter_server_documents-0.1.0a8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-10-23 23:35:45",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jupyter-ai-contrib",
    "github_project": "jupyter_server_documents",
    "github_not_found": true,
    "lcname": "jupyter-server-documents"
}