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.35

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.35
File Size Uploaded Provenance Actions
jupyterlab_refresh_view_extension-1.2.35.tar.gz 570.7 kB Without provenance Details for jupyterlab_refresh_view_extension-1.2.35.tar.gz

Built distribution (wheel)

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

Total release size: 607.7 kB

Release files / jupyterlab_refresh_view_extension-1.2.35.tar.gz

Download URL jupyterlab_refresh_view_extension-1.2.35.tar.gz
Size 570.7 kB
Tags Source
SHA-256 checksum
How to use checksums
38ea8fd4abc3a3c4e7786a880e39c5effb02f99e447493b8c1745cad19d5c0e4
BLAKE2b-256 checksum
How to use checksums
3184d04e7fb75ff4ef7622ff9d98542c5283a6fa253bc8b54dbcd70137b138b2
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.35-py3-none-any.whl

Download URL jupyterlab_refresh_view_extension-1.2.35-py3-none-any.whl
Size 37.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
169a5c94e8ff06146c5be0367eeadb9ec8d6189b04cde8f6d5b0a08f4828411b
BLAKE2b-256 checksum
How to use checksums
70e17372644e8c38f4eba3df489a08c478bd205113c11778d3ae297898ef9979
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.35

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