jupyverse 0.10.2__tar.gz → 0.10.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {jupyverse-0.10.2 → jupyverse-0.10.4}/.pre-commit-config.yaml +1 -1
- {jupyverse-0.10.2 → jupyverse-0.10.4}/CHANGELOG.md +4 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/PKG-INFO +4 -4
- {jupyverse-0.10.2 → jupyverse-0.10.4}/jupyverse_api/jupyverse_api/kernel/__init__.py +5 -4
- {jupyverse-0.10.2 → jupyverse-0.10.4}/jupyverse_api/pyproject.toml +1 -1
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/kernel_subprocess/fps_kernel_subprocess/kernel_subprocess.py +3 -3
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/kernel_subprocess/pyproject.toml +2 -2
- jupyverse-0.10.4/plugins/kernel_web_worker/COPYING.md +59 -0
- jupyverse-0.10.4/plugins/kernel_web_worker/README.md +3 -0
- jupyverse-0.10.4/plugins/kernel_web_worker/fps_kernel_web_worker/__init__.py +6 -0
- jupyverse-0.10.4/plugins/kernel_web_worker/fps_kernel_web_worker/kernel_web_worker.py +90 -0
- jupyverse-0.10.4/plugins/kernel_web_worker/fps_kernel_web_worker/main.py +13 -0
- jupyverse-0.10.4/plugins/kernel_web_worker/pyproject.toml +30 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/yjs/fps_yjs/main.py +1 -1
- jupyverse-0.10.4/plugins/yjs/fps_yjs/py.typed +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/yjs/fps_yjs/routes.py +9 -6
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/yjs/pyproject.toml +1 -1
- {jupyverse-0.10.2 → jupyverse-0.10.4}/pyproject.toml +7 -4
- {jupyverse-0.10.2 → jupyverse-0.10.4}/.devcontainer/devcontainer.json +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/.devcontainer/requirements.txt +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/.github/workflows/publish-release.yml +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/.github/workflows/test.yml +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/.gitignore +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/COPYING.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/README.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/binder/environment.yml +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/binder/jupyter_notebook_config.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/binder/postBuild +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/binder/start +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/docs/index.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/docs/install.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/docs/jupyter.svg +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/docs/plugins/auth.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/docs/plugins/contents.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/docs/plugins/frontend.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/docs/plugins/jupyterlab.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/docs/plugins/kernels.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/docs/plugins/lab.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/docs/plugins/login.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/docs/plugins/nbconvert.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/docs/plugins/notebook.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/docs/plugins/resource_usage.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/docs/plugins/terminals.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/docs/plugins/yjs.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/docs/tutorials/jupyterhub_jupyverse_deployment.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/docs/tutorials/standalone_jupyverse_deployment.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/docs/usage/microservices.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/docs/usage/multi_user.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/docs/usage/single_user.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/jupyverse/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/jupyverse/py.typed +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/jupyverse_api/COPYING.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/jupyverse_api/README.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/jupyverse_api/jupyverse_api/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/jupyverse_api/jupyverse_api/app/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/jupyverse_api/jupyverse_api/auth/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/jupyverse_api/jupyverse_api/auth/models.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/jupyverse_api/jupyverse_api/cli.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/jupyverse_api/jupyverse_api/contents/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/jupyverse_api/jupyverse_api/contents/models.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/jupyverse_api/jupyverse_api/exceptions.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/jupyverse_api/jupyverse_api/file_id/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/jupyverse_api/jupyverse_api/frontend/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/jupyverse_api/jupyverse_api/jupyterlab/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/jupyverse_api/jupyverse_api/kernels/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/jupyverse_api/jupyverse_api/kernels/models.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/jupyverse_api/jupyverse_api/lab/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/jupyverse_api/jupyverse_api/login/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/jupyverse_api/jupyverse_api/main/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/jupyverse_api/jupyverse_api/nbconvert/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/jupyverse_api/jupyverse_api/notebook/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/jupyverse_api/jupyverse_api/py.typed +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/jupyverse_api/jupyverse_api/resource_usage/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/jupyverse_api/jupyverse_api/terminals/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/jupyverse_api/jupyverse_api/terminals/models.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/jupyverse_api/jupyverse_api/yjs/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/jupyverse_api/jupyverse_api/yjs/models.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/jupyverse_api/tests/test_resource_lock.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/mkdocs.yml +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/notebooks/admin_users.ipynb +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/notebooks/admin_users.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/auth/COPYING.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/auth/README.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/auth/fps_auth/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/auth/fps_auth/backends.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/auth/fps_auth/config.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/auth/fps_auth/db.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/auth/fps_auth/main.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/auth/fps_auth/models.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/auth/fps_auth/py.typed +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/auth/fps_auth/routes.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/auth/pyproject.toml +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/auth_fief/COPYING.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/auth_fief/README.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/auth_fief/fps_auth_fief/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/auth_fief/fps_auth_fief/backend.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/auth_fief/fps_auth_fief/config.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/auth_fief/fps_auth_fief/main.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/auth_fief/fps_auth_fief/py.typed +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/auth_fief/fps_auth_fief/routes.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/auth_fief/pyproject.toml +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/auth_jupyterhub/COPYING.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/auth_jupyterhub/README.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/auth_jupyterhub/fps_auth_jupyterhub/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/auth_jupyterhub/fps_auth_jupyterhub/config.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/auth_jupyterhub/fps_auth_jupyterhub/db.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/auth_jupyterhub/fps_auth_jupyterhub/launch.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/auth_jupyterhub/fps_auth_jupyterhub/main.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/auth_jupyterhub/fps_auth_jupyterhub/models.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/auth_jupyterhub/fps_auth_jupyterhub/py.typed +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/auth_jupyterhub/fps_auth_jupyterhub/routes.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/auth_jupyterhub/pyproject.toml +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/contents/COPYING.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/contents/README.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/contents/fps_contents/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/contents/fps_contents/main.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/contents/fps_contents/py.typed +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/contents/fps_contents/routes.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/contents/pyproject.toml +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/file_id/COPYING.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/file_id/README.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/file_id/fps_file_id/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/file_id/fps_file_id/file_id.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/file_id/fps_file_id/main.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/file_id/fps_file_id/py.typed +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/file_id/pyproject.toml +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/frontend/COPYING.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/frontend/README.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/frontend/fps_frontend/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/frontend/fps_frontend/main.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/frontend/fps_frontend/py.typed +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/frontend/pyproject.toml +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/jupyterlab/COPYING.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/jupyterlab/README.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/jupyterlab/fps_jupyterlab/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/jupyterlab/fps_jupyterlab/index.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/jupyterlab/fps_jupyterlab/main.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/jupyterlab/fps_jupyterlab/py.typed +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/jupyterlab/fps_jupyterlab/routes.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/jupyterlab/pyproject.toml +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/kernel_subprocess/COPYING.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/kernel_subprocess/README.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/kernel_subprocess/fps_kernel_subprocess/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/kernel_subprocess/fps_kernel_subprocess/connect.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/kernel_subprocess/fps_kernel_subprocess/main.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/kernel_subprocess/fps_kernel_subprocess/py.typed +0 -0
- {jupyverse-0.10.2/plugins/kernels/fps_kernels → jupyverse-0.10.4/plugins/kernel_web_worker/fps_kernel_web_worker}/py.typed +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/kernels/COPYING.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/kernels/README.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/kernels/fps_kernels/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/kernels/fps_kernels/kernel_driver/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/kernels/fps_kernels/kernel_driver/driver.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/kernels/fps_kernels/kernel_driver/kernelspec.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/kernels/fps_kernels/kernel_driver/message.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/kernels/fps_kernels/kernel_driver/paths.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/kernels/fps_kernels/kernel_server/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/kernels/fps_kernels/kernel_server/message.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/kernels/fps_kernels/kernel_server/server.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/kernels/fps_kernels/main.py +0 -0
- {jupyverse-0.10.2/plugins/lab/fps_lab → jupyverse-0.10.4/plugins/kernels/fps_kernels}/py.typed +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/kernels/fps_kernels/routes.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/kernels/pyproject.toml +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/kernels/tests/test_kernel_launcher.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/lab/COPYING.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/lab/README.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/lab/fps_lab/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/lab/fps_lab/main.py +0 -0
- {jupyverse-0.10.2/plugins/login/fps_login → jupyverse-0.10.4/plugins/lab/fps_lab}/py.typed +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/lab/fps_lab/routes.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/lab/fps_lab/static/favicon.ico +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/lab/pyproject.toml +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/login/COPYING.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/login/README.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/login/fps_login/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/login/fps_login/main.py +0 -0
- {jupyverse-0.10.2/plugins/nbconvert/fps_nbconvert → jupyverse-0.10.4/plugins/login/fps_login}/py.typed +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/login/fps_login/routes.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/login/fps_login/static/favicons/favicon-busy-1.ico +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/login/fps_login/static/favicons/favicon-busy-2.ico +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/login/fps_login/static/favicons/favicon-busy-3.ico +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/login/fps_login/static/favicons/favicon-file.ico +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/login/fps_login/static/favicons/favicon-notebook.ico +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/login/fps_login/static/favicons/favicon-terminal.ico +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/login/fps_login/static/favicons/favicon.ico +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/login/fps_login/static/index.html +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/login/fps_login/static/logo/github.svg +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/login/fps_login/static/logo/logo.png +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/login/fps_login/static/style/index.css +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/login/pyproject.toml +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/nbconvert/COPYING.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/nbconvert/README.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/nbconvert/fps_nbconvert/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/nbconvert/fps_nbconvert/main.py +0 -0
- {jupyverse-0.10.2/plugins/noauth/fps_noauth → jupyverse-0.10.4/plugins/nbconvert/fps_nbconvert}/py.typed +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/nbconvert/fps_nbconvert/routes.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/nbconvert/pyproject.toml +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/noauth/COPYING.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/noauth/README.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/noauth/fps_noauth/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/noauth/fps_noauth/backends.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/noauth/fps_noauth/main.py +0 -0
- {jupyverse-0.10.2/plugins/notebook/fps_notebook → jupyverse-0.10.4/plugins/noauth/fps_noauth}/py.typed +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/noauth/pyproject.toml +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/notebook/COPYING.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/notebook/README.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/notebook/fps_notebook/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/notebook/fps_notebook/main.py +0 -0
- {jupyverse-0.10.2/plugins/resource_usage/fps_resource_usage → jupyverse-0.10.4/plugins/notebook/fps_notebook}/py.typed +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/notebook/fps_notebook/routes.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/notebook/pyproject.toml +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/resource_usage/COPYING.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/resource_usage/README.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/resource_usage/fps_resource_usage/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/resource_usage/fps_resource_usage/main.py +0 -0
- {jupyverse-0.10.2/plugins/terminals/fps_terminals → jupyverse-0.10.4/plugins/resource_usage/fps_resource_usage}/py.typed +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/resource_usage/fps_resource_usage/routes.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/resource_usage/pyproject.toml +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/terminals/COPYING.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/terminals/README.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/terminals/fps_terminals/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/terminals/fps_terminals/main.py +0 -0
- {jupyverse-0.10.2/plugins/webdav/fps_webdav → jupyverse-0.10.4/plugins/terminals/fps_terminals}/py.typed +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/terminals/fps_terminals/routes.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/terminals/fps_terminals/server.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/terminals/fps_terminals/win_server.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/terminals/pyproject.toml +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/webdav/COPYING.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/webdav/README.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/webdav/fps_webdav/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/webdav/fps_webdav/config.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/webdav/fps_webdav/main.py +0 -0
- {jupyverse-0.10.2/plugins/yjs/fps_yjs → jupyverse-0.10.4/plugins/webdav/fps_webdav}/py.typed +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/webdav/fps_webdav/routes.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/webdav/pyproject.toml +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/webdav/tests/conftest.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/webdav/tests/test_webdav.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/yjs/COPYING.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/yjs/README.md +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/yjs/fps_yjs/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/yjs/fps_yjs/ywebsocket/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/yjs/fps_yjs/ywebsocket/asgi_server.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/yjs/fps_yjs/ywebsocket/awareness.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/yjs/fps_yjs/ywebsocket/django_channels_consumer.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/yjs/fps_yjs/ywebsocket/websocket.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/yjs/fps_yjs/ywebsocket/websocket_provider.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/yjs/fps_yjs/ywebsocket/websocket_server.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/yjs/fps_yjs/ywebsocket/yroom.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/yjs/fps_yjs/ywebsocket/ystore.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/yjs/fps_yjs/ywebsocket/yutils.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/yjs/fps_yjs/ywidgets/__init__.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/plugins/yjs/fps_yjs/ywidgets/widgets.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/pytest.ini +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/tests/conftest.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/tests/data/notebook0.ipynb +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/tests/data/notebook1.ipynb +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/tests/test_app.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/tests/test_auth.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/tests/test_contents.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/tests/test_execute.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/tests/test_kernels.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/tests/test_server.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/tests/test_settings.py +0 -0
- {jupyverse-0.10.2 → jupyverse-0.10.4}/tests/utils.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: jupyverse
|
3
|
-
Version: 0.10.
|
3
|
+
Version: 0.10.4
|
4
4
|
Summary: A set of FPS plugins implementing a Jupyter server
|
5
5
|
Project-URL: Homepage, https://jupyter.org
|
6
6
|
Author-email: Jupyter Development Team <jupyter@googlegroups.com>
|
@@ -12,14 +12,14 @@ Requires-Dist: eval-type-backport; python_version < '3.10'
|
|
12
12
|
Requires-Dist: fps-contents<0.11.0,>=0.10.0
|
13
13
|
Requires-Dist: fps-file-id<0.3.0,>=0.2.0
|
14
14
|
Requires-Dist: fps-frontend<0.10.0,>=0.9.0
|
15
|
-
Requires-Dist: fps-kernel-subprocess<0.2.0,>=0.1.
|
15
|
+
Requires-Dist: fps-kernel-subprocess<0.2.0,>=0.1.1
|
16
16
|
Requires-Dist: fps-kernels<0.10.0,>=0.9.1
|
17
17
|
Requires-Dist: fps-lab<0.10.0,>=0.9.0
|
18
18
|
Requires-Dist: fps-nbconvert<0.10.0,>=0.9.0
|
19
19
|
Requires-Dist: fps-terminals<0.10.0,>=0.9.0
|
20
|
-
Requires-Dist: fps-yjs<0.11.0,>=0.10.
|
20
|
+
Requires-Dist: fps-yjs<0.11.0,>=0.10.1
|
21
21
|
Requires-Dist: fps[anycorn,click,fastapi]<0.5.0,>=0.4.0
|
22
|
-
Requires-Dist: jupyverse-api<0.11.0,>=0.10.
|
22
|
+
Requires-Dist: jupyverse-api<0.11.0,>=0.10.1
|
23
23
|
Requires-Dist: rich-click<2,>=1.6.1
|
24
24
|
Provides-Extra: auth
|
25
25
|
Requires-Dist: fps-auth<0.10.0,>=0.9.0; extra == 'auth'
|
@@ -2,17 +2,18 @@ from __future__ import annotations
|
|
2
2
|
|
3
3
|
from abc import ABC, abstractmethod
|
4
4
|
|
5
|
-
from anyio import TASK_STATUS_IGNORED, create_memory_object_stream
|
5
|
+
from anyio import TASK_STATUS_IGNORED, Event, create_memory_object_stream
|
6
6
|
from anyio.abc import TaskStatus
|
7
7
|
from anyio.streams.memory import MemoryObjectReceiveStream
|
8
8
|
from anyio.streams.stapled import StapledObjectStream
|
9
9
|
|
10
10
|
|
11
11
|
class Kernel(ABC):
|
12
|
-
key = "0"
|
13
|
-
wait_for_ready = False
|
14
|
-
|
15
12
|
def __init__(self) -> None:
|
13
|
+
self.key = "0"
|
14
|
+
self.wait_for_ready = False
|
15
|
+
self.started = Event()
|
16
|
+
|
16
17
|
self._to_shell_send_stream, self._to_shell_receive_stream = create_memory_object_stream[
|
17
18
|
list[bytes]
|
18
19
|
]()
|
@@ -9,7 +9,7 @@ from dataclasses import dataclass
|
|
9
9
|
from typing import cast
|
10
10
|
|
11
11
|
import anyio
|
12
|
-
from anyio import TASK_STATUS_IGNORED, create_task_group, open_process
|
12
|
+
from anyio import TASK_STATUS_IGNORED, create_task_group, open_process
|
13
13
|
from anyio.abc import TaskStatus
|
14
14
|
|
15
15
|
from jupyverse_api.kernel import Kernel
|
@@ -48,7 +48,6 @@ class KernelSubprocess(Kernel):
|
|
48
48
|
|
49
49
|
async def start(self, *, task_status: TaskStatus[None] = TASK_STATUS_IGNORED) -> None:
|
50
50
|
async with (
|
51
|
-
create_task_group() as self.task_group,
|
52
51
|
self._to_shell_send_stream,
|
53
52
|
self._to_shell_receive_stream,
|
54
53
|
self._from_shell_send_stream,
|
@@ -63,6 +62,7 @@ class KernelSubprocess(Kernel):
|
|
63
62
|
self._from_stdin_receive_stream,
|
64
63
|
self._from_iopub_send_stream,
|
65
64
|
self._from_iopub_receive_stream,
|
65
|
+
create_task_group() as self.task_group,
|
66
66
|
):
|
67
67
|
with open(self.kernelspec_path) as f:
|
68
68
|
kernelspec = json.load(f)
|
@@ -105,7 +105,7 @@ class KernelSubprocess(Kernel):
|
|
105
105
|
self.task_group.start_soon(self.forward_messages_from_iopub)
|
106
106
|
|
107
107
|
task_status.started()
|
108
|
-
|
108
|
+
self.started.set()
|
109
109
|
|
110
110
|
async def stop(self) -> None:
|
111
111
|
try:
|
@@ -4,12 +4,12 @@ build-backend = "hatchling.build"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "fps_kernel_subprocess"
|
7
|
-
version = "0.1.
|
7
|
+
version = "0.1.1"
|
8
8
|
description = "An FPS plugin for the kernel subprocess API"
|
9
9
|
keywords = ["jupyter", "server", "fastapi", "plugins"]
|
10
10
|
requires-python = ">=3.9"
|
11
11
|
dependencies = [
|
12
|
-
"jupyverse-api >=0.10.
|
12
|
+
"jupyverse-api >=0.10.1,<0.11.0",
|
13
13
|
"anyio",
|
14
14
|
"pyzmq",
|
15
15
|
"zmq-anyio >=0.3.1,<0.4.0",
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# Licensing terms
|
2
|
+
|
3
|
+
This project is licensed under the terms of the Modified BSD License
|
4
|
+
(also known as New or Revised or 3-Clause BSD), as follows:
|
5
|
+
|
6
|
+
- Copyright (c) 2025-, Jupyter Development Team
|
7
|
+
|
8
|
+
All rights reserved.
|
9
|
+
|
10
|
+
Redistribution and use in source and binary forms, with or without
|
11
|
+
modification, are permitted provided that the following conditions are met:
|
12
|
+
|
13
|
+
Redistributions of source code must retain the above copyright notice, this
|
14
|
+
list of conditions and the following disclaimer.
|
15
|
+
|
16
|
+
Redistributions in binary form must reproduce the above copyright notice, this
|
17
|
+
list of conditions and the following disclaimer in the documentation and/or
|
18
|
+
other materials provided with the distribution.
|
19
|
+
|
20
|
+
Neither the name of the Jupyter Development Team nor the names of its
|
21
|
+
contributors may be used to endorse or promote products derived from this
|
22
|
+
software without specific prior written permission.
|
23
|
+
|
24
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
25
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
26
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
27
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
28
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
29
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
30
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
31
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
32
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
33
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
34
|
+
|
35
|
+
## About the Jupyter Development Team
|
36
|
+
|
37
|
+
The Jupyter Development Team is the set of all contributors to the Jupyter project.
|
38
|
+
This includes all of the Jupyter subprojects.
|
39
|
+
|
40
|
+
The core team that coordinates development on GitHub can be found here:
|
41
|
+
https://github.com/jupyter/.
|
42
|
+
|
43
|
+
## Our Copyright Policy
|
44
|
+
|
45
|
+
Jupyter uses a shared copyright model. Each contributor maintains copyright
|
46
|
+
over their contributions to Jupyter. But, it is important to note that these
|
47
|
+
contributions are typically only changes to the repositories. Thus, the Jupyter
|
48
|
+
source code, in its entirety is not the copyright of any single person or
|
49
|
+
institution. Instead, it is the collective copyright of the entire Jupyter
|
50
|
+
Development Team. If individual contributors want to maintain a record of what
|
51
|
+
changes/contributions they have specific copyright on, they should indicate
|
52
|
+
their copyright in the commit message of the change, when they commit the
|
53
|
+
change to one of the Jupyter repositories.
|
54
|
+
|
55
|
+
With this in mind, the following banner should be used in any source code file
|
56
|
+
to indicate the copyright and license terms:
|
57
|
+
|
58
|
+
# Copyright (c) Jupyter Development Team.
|
59
|
+
# Distributed under the terms of the Modified BSD License.
|
@@ -0,0 +1,90 @@
|
|
1
|
+
from uuid import uuid4
|
2
|
+
|
3
|
+
import pyjs # type: ignore[import-not-found]
|
4
|
+
from anyio import TASK_STATUS_IGNORED, Event, create_task_group
|
5
|
+
from anyio.abc import TaskStatus
|
6
|
+
|
7
|
+
from jupyverse_api.kernel import Kernel as Kernel
|
8
|
+
|
9
|
+
|
10
|
+
class KernelWebWorker(Kernel):
|
11
|
+
def __init__(self, *args, **kwargs):
|
12
|
+
super().__init__()
|
13
|
+
|
14
|
+
async def start(self, *, task_status: TaskStatus[None] = TASK_STATUS_IGNORED) -> None:
|
15
|
+
async with (
|
16
|
+
self._to_shell_send_stream,
|
17
|
+
self._to_shell_receive_stream,
|
18
|
+
self._from_shell_send_stream,
|
19
|
+
self._from_shell_receive_stream,
|
20
|
+
self._to_control_send_stream,
|
21
|
+
self._to_control_receive_stream,
|
22
|
+
self._from_control_send_stream,
|
23
|
+
self._from_control_receive_stream,
|
24
|
+
self._to_stdin_send_stream,
|
25
|
+
self._to_stdin_receive_stream,
|
26
|
+
self._from_stdin_send_stream,
|
27
|
+
self._from_stdin_receive_stream,
|
28
|
+
self._from_iopub_send_stream,
|
29
|
+
self._from_iopub_receive_stream,
|
30
|
+
create_task_group() as self.task_group,
|
31
|
+
):
|
32
|
+
self.kernel_id = uuid4().hex
|
33
|
+
kernel_ready = Event()
|
34
|
+
|
35
|
+
def callback(msg):
|
36
|
+
if msg["type"] == "started":
|
37
|
+
kernel_ready.set()
|
38
|
+
else:
|
39
|
+
msg = [bytes(pyjs.to_py(m)) for m in msg["msg"]]
|
40
|
+
if msg["type"] == "shell":
|
41
|
+
self.task_group.start_soon(self._from_shell_send_stream.send, msg)
|
42
|
+
elif msg["type"] == "control":
|
43
|
+
self.task_group.start_soon(self._from_control_send_stream.send, msg)
|
44
|
+
elif msg["type"] == "stdin":
|
45
|
+
self.task_group.start_soon(self._from_stdin_send_stream.send, msg)
|
46
|
+
elif msg["type"] == "iopub":
|
47
|
+
self.task_group.start_soon(self._from_iopub_send_stream.send, msg)
|
48
|
+
|
49
|
+
js_callable, self.js_py_object = pyjs.create_callable(callback)
|
50
|
+
higher_order_function = pyjs.js.Function(
|
51
|
+
"callback", "action", "kernel_id",
|
52
|
+
"kernel_web_worker(action, kernel_id, 0, callback);"
|
53
|
+
)
|
54
|
+
higher_order_function(js_callable, "start", self.kernel_id)
|
55
|
+
await kernel_ready.wait()
|
56
|
+
|
57
|
+
self.task_group.start_soon(self.forward_messages_to_shell)
|
58
|
+
self.task_group.start_soon(self.forward_messages_to_control)
|
59
|
+
self.task_group.start_soon(self.forward_messages_to_stdin)
|
60
|
+
|
61
|
+
task_status.started()
|
62
|
+
self.started.set()
|
63
|
+
|
64
|
+
async def stop(self) -> None:
|
65
|
+
self.js_py_object.delete()
|
66
|
+
self.task_group.cancel_scope.cancel()
|
67
|
+
|
68
|
+
async def interrupt(self) -> None:
|
69
|
+
pass
|
70
|
+
|
71
|
+
async def forward_messages_to_shell(self) -> None:
|
72
|
+
async for msg in self._to_shell_receive_stream:
|
73
|
+
msg = pyjs.to_js(msg)
|
74
|
+
pyjs.js.Function(
|
75
|
+
"action", "kernel_id", "msg", "kernel_web_worker(action, kernel_id, msg, 0);"
|
76
|
+
)("shell", self.kernel_id, msg)
|
77
|
+
|
78
|
+
async def forward_messages_to_control(self) -> None:
|
79
|
+
async for msg in self._to_control_receive_stream:
|
80
|
+
msg = pyjs.to_js(msg)
|
81
|
+
pyjs.js.Function(
|
82
|
+
"action", "kernel_id", "msg", "kernel_web_worker(action, kernel_id, msg, 0);"
|
83
|
+
)("control", self.kernel_id, msg)
|
84
|
+
|
85
|
+
async def forward_messages_to_stdin(self) -> None:
|
86
|
+
async for msg in self._to_stdin_receive_stream:
|
87
|
+
msg = pyjs.to_js(msg)
|
88
|
+
pyjs.js.Function(
|
89
|
+
"action", "kernel_id", "msg", "kernel_web_worker(action, kernel_id, msg, 0);"
|
90
|
+
)("stdin", self.kernel_id, msg)
|
@@ -0,0 +1,13 @@
|
|
1
|
+
from __future__ import annotations
|
2
|
+
|
3
|
+
from fps import Module
|
4
|
+
|
5
|
+
from jupyverse_api.kernel import DefaultKernelFactory
|
6
|
+
|
7
|
+
from .kernel_web_worker import KernelWebWorker
|
8
|
+
|
9
|
+
|
10
|
+
class KernelWebWorkerModule(Module):
|
11
|
+
async def prepare(self) -> None:
|
12
|
+
default_kernel_factory = DefaultKernelFactory(KernelWebWorker)
|
13
|
+
self.put(default_kernel_factory)
|
@@ -0,0 +1,30 @@
|
|
1
|
+
[build-system]
|
2
|
+
requires = [ "hatchling",]
|
3
|
+
build-backend = "hatchling.build"
|
4
|
+
|
5
|
+
[project]
|
6
|
+
name = "fps_kernel_web_worker"
|
7
|
+
version = "0.1.1"
|
8
|
+
description = "An FPS plugin for the kernel web worker API"
|
9
|
+
keywords = ["jupyter", "server", "fastapi", "plugins"]
|
10
|
+
requires-python = ">=3.9"
|
11
|
+
dependencies = [
|
12
|
+
"jupyverse-api >=0.10.1,<0.11.0",
|
13
|
+
"anyio",
|
14
|
+
]
|
15
|
+
[[project.authors]]
|
16
|
+
name = "Jupyter Development Team"
|
17
|
+
email = "jupyter@googlegroups.com"
|
18
|
+
|
19
|
+
[project.readme]
|
20
|
+
file = "README.md"
|
21
|
+
content-type = "text/markdown"
|
22
|
+
|
23
|
+
[project.license]
|
24
|
+
text = "BSD 3-Clause License"
|
25
|
+
|
26
|
+
[project.urls]
|
27
|
+
Homepage = "https://jupyter.org"
|
28
|
+
|
29
|
+
[project.entry-points]
|
30
|
+
"fps.modules" = {kernel_web_worker = "fps_kernel_web_worker.main:KernelWebWorkerModule"}
|
@@ -27,7 +27,7 @@ class YjsModule(Module):
|
|
27
27
|
file_id = await self.get(FileId) # type: ignore[type-abstract]
|
28
28
|
lifespan = await self.get(Lifespan)
|
29
29
|
|
30
|
-
self.yjs = _Yjs(app, auth, contents, file_id, lifespan)
|
30
|
+
self.yjs = _Yjs(app, auth, contents, file_id, lifespan, self.config)
|
31
31
|
|
32
32
|
async with create_task_group() as tg:
|
33
33
|
await tg.start(self.yjs.start)
|
File without changes
|
@@ -25,7 +25,7 @@ from jupyverse_api.auth import Auth, User
|
|
25
25
|
from jupyverse_api.contents import Contents
|
26
26
|
from jupyverse_api.file_id import FileId
|
27
27
|
from jupyverse_api.main import Lifespan
|
28
|
-
from jupyverse_api.yjs import Yjs
|
28
|
+
from jupyverse_api.yjs import Yjs, YjsConfig
|
29
29
|
from jupyverse_api.yjs.models import CreateDocumentSession
|
30
30
|
|
31
31
|
from .ywebsocket.websocket import Websocket
|
@@ -51,11 +51,13 @@ class _Yjs(Yjs):
|
|
51
51
|
contents: Contents,
|
52
52
|
file_id: FileId,
|
53
53
|
lifespan: Lifespan,
|
54
|
+
config: YjsConfig,
|
54
55
|
) -> None:
|
55
56
|
super().__init__(app=app, auth=auth)
|
56
57
|
self.contents = contents
|
57
58
|
self.file_id = file_id
|
58
59
|
self.lifespan = lifespan
|
60
|
+
self.config = config
|
59
61
|
if Widgets is None:
|
60
62
|
self.widgets = None
|
61
63
|
else:
|
@@ -63,7 +65,7 @@ class _Yjs(Yjs):
|
|
63
65
|
|
64
66
|
async def start(self, *, task_status: TaskStatus[None] = TASK_STATUS_IGNORED) -> None:
|
65
67
|
async with create_task_group() as tg:
|
66
|
-
self.room_manager = RoomManager(self.contents, self.file_id, self.lifespan)
|
68
|
+
self.room_manager = RoomManager(self.contents, self.file_id, self.lifespan, self.config)
|
67
69
|
tg.start_soon(self.room_manager.start)
|
68
70
|
task_status.started()
|
69
71
|
|
@@ -166,7 +168,7 @@ class RoomManager:
|
|
166
168
|
room_write_permissions: dict[str, set[YWebsocket]]
|
167
169
|
room_lock: ResourceLock
|
168
170
|
|
169
|
-
def __init__(self, contents: Contents, file_id: FileId, lifespan: Lifespan):
|
171
|
+
def __init__(self, contents: Contents, file_id: FileId, lifespan: Lifespan, config: YjsConfig):
|
170
172
|
self.contents = contents
|
171
173
|
self.file_id = file_id
|
172
174
|
self.lifespan = lifespan
|
@@ -178,6 +180,7 @@ class RoomManager:
|
|
178
180
|
self.room_write_permissions = {} # a dictionary of room_name:websockets that can write
|
179
181
|
self.websocket_server = JupyterWebsocketServer(rooms_ready=False, auto_clean_rooms=False)
|
180
182
|
self.room_lock = ResourceLock()
|
183
|
+
self.config = config
|
181
184
|
|
182
185
|
async def start(self):
|
183
186
|
async with create_task_group() as self.task_group:
|
@@ -364,8 +367,8 @@ class RoomManager:
|
|
364
367
|
async def maybe_save_document(
|
365
368
|
self, file_id: str, file_type: str, file_format: str, document: YBaseDoc
|
366
369
|
) -> None:
|
367
|
-
# save after
|
368
|
-
await sleep(
|
370
|
+
# save after configured delay to prevent too frequent saving
|
371
|
+
await sleep(self.config.document_save_delay)
|
369
372
|
# if the room cannot be found, don't save
|
370
373
|
try:
|
371
374
|
file_path = await self.get_file_path(file_id, document)
|
@@ -401,7 +404,7 @@ class RoomManager:
|
|
401
404
|
async def maybe_clean_room(self, room, ws_path: str) -> None:
|
402
405
|
file_id = ws_path.split(":", 2)[2]
|
403
406
|
# keep the document for a while in case someone reconnects
|
404
|
-
await sleep(
|
407
|
+
await sleep(self.config.document_cleanup_delay)
|
405
408
|
document = self.documents[ws_path]
|
406
409
|
document.unobserve()
|
407
410
|
del self.documents[ws_path]
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "jupyverse"
|
7
|
-
version = "0.10.
|
7
|
+
version = "0.10.4"
|
8
8
|
description = "A set of FPS plugins implementing a Jupyter server"
|
9
9
|
keywords = ["jupyter", "server", "fastapi", "plugins"]
|
10
10
|
requires-python = ">=3.9"
|
@@ -12,14 +12,14 @@ dependencies = [
|
|
12
12
|
"fps[click,fastapi,anycorn] >=0.4.0,<0.5.0",
|
13
13
|
"fps-contents >=0.10.0,<0.11.0",
|
14
14
|
"fps-file-id >=0.2.0,<0.3.0",
|
15
|
-
"fps-kernel-subprocess >=0.1.
|
15
|
+
"fps-kernel-subprocess >=0.1.1,<0.2.0",
|
16
16
|
"fps-kernels >=0.9.1,<0.10.0",
|
17
17
|
"fps-terminals >=0.9.0,<0.10.0",
|
18
18
|
"fps-nbconvert >=0.9.0,<0.10.0",
|
19
|
-
"fps-yjs >=0.10.
|
19
|
+
"fps-yjs >=0.10.1,<0.11.0",
|
20
20
|
"fps-lab >=0.9.0,<0.10.0",
|
21
21
|
"fps-frontend >=0.9.0,<0.10.0",
|
22
|
-
"jupyverse-api >=0.10.
|
22
|
+
"jupyverse-api >=0.10.1,<0.11.0",
|
23
23
|
"rich-click >=1.6.1,<2",
|
24
24
|
"eval-type-backport; python_version<'3.10'",
|
25
25
|
]
|
@@ -73,6 +73,7 @@ pre-install-commands = [
|
|
73
73
|
"pip install -e ./plugins/file_id",
|
74
74
|
"pip install -e ./plugins/frontend",
|
75
75
|
"pip install -e ./plugins/kernel_subprocess",
|
76
|
+
"pip install -e ./plugins/kernel_web_worker",
|
76
77
|
"pip install -e ./plugins/kernels[watchfiles]",
|
77
78
|
"pip install -e ./plugins/lab",
|
78
79
|
"pip install -e ./plugins/nbconvert",
|
@@ -123,6 +124,7 @@ typecheck0 = """mypy --no-incremental \
|
|
123
124
|
./plugins/file_id \
|
124
125
|
./plugins/frontend \
|
125
126
|
./plugins/kernel_subprocess \
|
127
|
+
./plugins/kernel_web_worker \
|
126
128
|
./plugins/kernels \
|
127
129
|
./plugins/lab \
|
128
130
|
./plugins/nbconvert \
|
@@ -178,6 +180,7 @@ fps-file_id = { workspace = true }
|
|
178
180
|
fps-frontend = { workspace = true }
|
179
181
|
fps-jupyterlab = { workspace = true }
|
180
182
|
fps-kernel-subprocess = { workspace = true }
|
183
|
+
fps-kernel-web-worker = { workspace = true }
|
181
184
|
fps-kernels = { workspace = true }
|
182
185
|
fps-lab = { workspace = true }
|
183
186
|
fps-login = { workspace = true }
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{jupyverse-0.10.2 → jupyverse-0.10.4}/jupyverse_api/jupyverse_api/resource_usage/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|