jupyterlab_restore_terminals_fix
v0.9.26
Published
Jupyterlab fix in a form of extension for a common problem of restoring workspace after server restart etc... such that terminal windows are there, but they all were opened in the same location (notebook root). We'd like to have them opened in the locatio
Maintainers
Readme
jupyterlab_restore_terminals_fix
[!TIP] This extension is part of the stellars_jupyterlab_fixes metapackage. Install all Stellars extensions at once:
pip install stellars_jupyterlab_fixes
Fix for the common JupyterLab problem where terminal windows lose their working directories after workspace restoration. When JupyterLab restores a saved workspace (after server restart, browser refresh, etc.), all terminals reopen pointing to the notebook root instead of their original locations. This extension remembers and restores each terminal's working directory.
Features
- Automatic cwd restoration - terminals reopen in their original working directories after workspace restore
- Server-side cwd detection - accurately determines each terminal's current directory via process inspection
- Cross-platform support - works on Linux (via /proc) and macOS (via lsof)
- Transparent operation - works automatically with no user interaction required
Requirements
- JupyterLab >= 4.0.0
Install
pip install jupyterlab_restore_terminals_fixUninstall
To remove the extension, execute:
pip uninstall jupyterlab_restore_terminals_fix