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 with scroll coordinate fallback, ensuring position preservation regardless of content loading order
  • Intelligent Stabilization - Monitors content loading and adaptively restores position as cells render, stabilizing within 300ms typically
  • 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

From npm

jupyter labextension 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.37

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.37
File Size Uploaded Provenance Actions
jupyterlab_refresh_view_extension-1.2.37.tar.gz 659.5 kB Without provenance Details for jupyterlab_refresh_view_extension-1.2.37.tar.gz

Built distribution (wheel)

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

Total release size: 696.4 kB

Release files / jupyterlab_refresh_view_extension-1.2.37.tar.gz

Download URL jupyterlab_refresh_view_extension-1.2.37.tar.gz
Size 659.5 kB
Tags Source
SHA-256 checksum
How to use checksums
02ce14702556ce2c24dbda2c23c35571df0e94a338391b61897c3792a24da1db
BLAKE2b-256 checksum
How to use checksums
cc72511653d91396f3300170a95afd03efb5c59cdf86ec683fedf089e100c9b2
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.37-py3-none-any.whl

Download URL jupyterlab_refresh_view_extension-1.2.37-py3-none-any.whl
Size 37.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b85afb21d4322883e91c23107ea7f7aae0402ca723fd9196e6dd1088210a638d
BLAKE2b-256 checksum
How to use checksums
b62c7ee253d34e4239e13454bb0a983005d4cd61d7e645768ae935549f80521a
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.37

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