{"id":15993863,"url":"https://github.com/manics/jupyterlab-promptclose","last_synced_at":"2026-04-24T16:34:00.193Z","repository":{"id":62573412,"uuid":"369910854","full_name":"manics/jupyterlab-promptclose","owner":"manics","description":"Prompt when JupyterLab window is closed","archived":false,"fork":false,"pushed_at":"2021-05-23T20:49:20.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-04-25T11:02:56.488Z","etag":null,"topics":["jupyter","jupyterlab","jupyterlab-extension"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/manics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-22T21:42:31.000Z","updated_at":"2021-08-06T02:09:42.000Z","dependencies_parsed_at":"2022-11-03T19:53:38.919Z","dependency_job_id":null,"html_url":"https://github.com/manics/jupyterlab-promptclose","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manics%2Fjupyterlab-promptclose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manics%2Fjupyterlab-promptclose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manics%2Fjupyterlab-promptclose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manics%2Fjupyterlab-promptclose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manics","download_url":"https://codeload.github.com/manics/jupyterlab-promptclose/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247266566,"owners_count":20910836,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jupyter","jupyterlab","jupyterlab-extension"],"created_at":"2024-10-08T07:02:42.161Z","updated_at":"2026-04-24T16:33:55.154Z","avatar_url":"https://github.com/manics.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jupyterlab-promptclose\n\n[![Build](https://github.com/manics/jupyterlab-promptclose/actions/workflows/build.yml/badge.svg)](https://github.com/manics/jupyterlab-promptclose/actions/workflows/build.yml)\n\nPrompt when JupyterLab window is closed.\n\nDo you find yourself using the `Ctrl-w` keyboard shortcut (delete the previous word in Bash) in a JupyterLab terminal and accidentally closing your browser window instead? Then install this extension and you should see a prompt before the window is closed.\n\n## Requirements\n\n- JupyterLab \u003e= 3.0\n\n## Install\n\nTo install the extension, execute:\n\n```bash\npip install jupyterlab-promptclose\n```\n\n## Uninstall\n\nTo remove the extension, execute:\n\n```bash\npip uninstall jupyterlab-promptclose\n```\n\n## Contributing\n\n### Development install\n\nNote: You will need NodeJS to build the extension package.\n\nThe `jlpm` command is JupyterLab's pinned version of\n[yarn](https://yarnpkg.com/) that is installed with JupyterLab. You may use\n`yarn` or `npm` in lieu of `jlpm` below.\n\n```bash\n# Clone the repo to your local environment\n# Change directory to the jupyterlab-promptclose directory\n# Install package in development mode\npip install -e .\n# Link your development version of the extension with JupyterLab\njupyter labextension develop . --overwrite\n# Rebuild extension Typescript source after making changes\njlpm run build\n```\n\nYou 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.\n\n```bash\n# Watch the source directory in one terminal, automatically rebuilding when needed\njlpm run watch\n# Run JupyterLab in another terminal\njupyter lab\n```\n\nWith 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).\n\nBy default, the `jlpm run 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:\n\n```bash\njupyter lab build --minimize=False\n```\n\n### Development uninstall\n\n```bash\npip uninstall jupyterlab-promptclose\n```\n\nIn development mode, you will also need to remove the symlink created by `jupyter labextension develop`\ncommand. To find its location, you can run `jupyter labextension list` to figure out where the `labextensions`\nfolder is located. Then you can remove the symlink named `jupyterlab-promptclose` within that folder.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanics%2Fjupyterlab-promptclose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanics%2Fjupyterlab-promptclose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanics%2Fjupyterlab-promptclose/lists"}