Skip to main content

JupyterLab Refresh View Extension

GitHub Actions npm version PyPI version Total PyPI downloads JupyterLab 4 Brought To You By KOLOMOLO Donate PayPal

JupyterLab extension that adds a "Refresh View" context menu command to reload file content from disk while preserving scroll position.

Refresh View Context Menu

Features

The extension provides intelligent content refresh while preserving your exact position in the document. For notebooks, it identifies the visible cell in your viewport and automatically scrolls back to that cell after refresh, restoring both the cell position and viewport offset even when JupyterLab's windowed rendering progressively loads cells. For markdown and text files, it maintains precise scroll coordinates. The extension works seamlessly with jupyterlab_tabular_data_viewer_extension to refresh CSV and tabular data files in their custom viewer.

  • Automatic Cell Scrolling - Identifies visible notebook cell before refresh and automatically scrolls back to it afterward, preserving exact viewport position
  • Hybrid Position Tracking - Cell-based anchoring for notebooks, ensuring position preservation regardless of content loading order
  • Intelligent Stabilization - Monitors content loading and adaptively restores position as cells render
  • Tabular Data Viewer Compatibility - Works with jupyterlab_tabular_data_viewer_extension to refresh CSV files in custom tabular view
  • Context Menu Integration - Right-click access for markdown files, notebooks, text editors, and tabular data viewers
  • HTML Viewer Support - Refresh rendered HTML files by right-clicking the file's tab (the sandboxed iframe prevents an in-content menu)
  • Command Palette Access - Available under "File Operations" category
  • Smart Enable/Disable - Only active when a document with reloadable context is open

Use Cases

  • Iterative Editing - Refresh files edited externally without losing your place
  • Live Documentation - Keep markdown files in sync with external updates
  • Collaborative Work - View changes from teammates without manual reload
  • Build System Integration - Refresh generated files after build processes

Requirements

  • JupyterLab >= 4.6.0

Installation

From PyPI

pip install jupyterlab-refresh-view-extension

Usage

  1. Open a markdown file, notebook, or text file in JupyterLab
  2. Right-click anywhere in the document content
  3. Select "Refresh View" from the context menu
  4. The file reloads from disk while maintaining your scroll position

For HTML files (rendered in the HTML viewer), right-click the file's tab and choose "Refresh View" - the rendered content sits in a sandboxed iframe where an in-content context menu cannot appear.

Alternatively, open the command palette (Ctrl+Shift+C or Cmd+Shift+C) and search for "Refresh View".

Uninstall

pip uninstall jupyterlab-refresh-view-extension

Contributing

If you would like to contribute to this extension, please refer to the Contributing Guide.

Metadata

Release files for jupyterlab-refresh-view-extension 1.2.43

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jupyterlab-refresh-view-extension 1.2.43
File Size Uploaded Provenance Actions
jupyterlab_refresh_view_extension-1.2.43.tar.gz 663.5 kB Without provenance Details for jupyterlab_refresh_view_extension-1.2.43.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jupyterlab-refresh-view-extension 1.2.43
File Interpreter ABI Platform Actions
jupyterlab_refresh_view_extension-1.2.43-py3-none-any.whl Python 3 none any Details for jupyterlab_refresh_view_extension-1.2.43-py3-none-any.whl

Total release size: 700.5 kB

Release files / jupyterlab_refresh_view_extension-1.2.43.tar.gz

Download URL jupyterlab_refresh_view_extension-1.2.43.tar.gz
Size 663.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6c3002cd7485c660cc82018690c1626ab95ae449be508665048e19231a82a91c
BLAKE2b-256 checksum
How to use checksums
0152c7a7b70ca50df17c89c78a7f56d1c8dfa60a4142649eea9b5fe0ae16cc17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / jupyterlab_refresh_view_extension-1.2.43-py3-none-any.whl

Download URL jupyterlab_refresh_view_extension-1.2.43-py3-none-any.whl
Size 37.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4172bc002c947cadb9633135734a328d0e4a23b351075d0957cec98ce1564e85
BLAKE2b-256 checksum
How to use checksums
7bf6cddd003d985425b27860073d13ba85671825f50c75efcb15b3732fd33087
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Security for jupyterlab-refresh-view-extension 1.2.43

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page