Skip to main content

jupyterlab_advanced_html_viewer_extension

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

Read an HTML file in JupyterLab and comment on it. The viewer trusts and refreshes a page as the built-in HTML Viewer does, and adds the marks, comments and notes panel of the advanced Markdown viewer. The comments are stored in the HTML file itself, so an AI agent reading the file reads them too and can answer in it.

Features

  • Opens HTML files - double-click an .html file; Trust HTML runs its scripts and Rerender HTML Document reads it again, as in the built-in viewer
  • Follows the file - a change another program writes to the file shows within a few seconds; a change to the notes alone leaves the page as it is. While changes arrive, the tab shows a half-filled circle whose filled half swaps sides, from 1 s a frame for a single change to 0.25 s a frame for a change at every look
  • Marks in six colours - select text, right-click and choose a colour under Mark, or Add Comment to write a note at once; Ctrl Shift M (Cmd Shift M on macOS) marks from the keyboard
  • Only text written in the file takes a comment - text a trusted page's scripts produce, and whatever an iframe, object or embed of the page shows, is refused
  • Notes are stored in the file - as HTML comments around the passage, which no browser shows, in the same form the advanced Markdown viewer writes
  • Notes panel beside the page - a comment and its replies per mark, with edit, delete, colour, close and a note on the whole document

Agent skill

The skill in .agents/skills/jupyterlab-advanced-html-viewer-extension teaches an AI assistant the marks this extension stores in the HTML file. With it, the assistant can:

  • mark passages in the six colours, change a mark's colour and hide a mark
  • comment on a passage or on the whole page
  • answer and close your comments
  • watch a file for new comments, with the bundled scripts/watch-marks.py

pip install puts a copy in <sys.prefix>/share/jupyter/agents/skills/, inside the Python environment, not in ~/.agents/skills. No agent reads that directory, so link the copy into ~/.agents/skills yourself, with the Python that runs the lab:

mkdir -p ~/.agents/skills
ln -s "$(python -c 'import sys; print(sys.prefix)')/share/jupyter/agents/skills/jupyterlab-advanced-html-viewer-extension" ~/.agents/skills/jupyterlab-advanced-html-viewer-extension

Agents that read .agents/skills also find it in a clone of this repository; to make it available to Claude Code everywhere, link it into the skills directory from the root of the clone:

mkdir -p ~/.claude/skills && ln -sfn "$PWD/.agents/skills/jupyterlab-advanced-html-viewer-extension" ~/.claude/skills/jupyterlab-advanced-html-viewer-extension

Requirements

  • JupyterLab >= 4.6.0

Install

To install the extension, execute:

pip install jupyterlab_advanced_html_viewer_extension

Uninstall

To remove the extension, execute:

pip uninstall jupyterlab_advanced_html_viewer_extension

Metadata

Release files for jupyterlab-advanced-html-viewer-extension 1.0.22

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-advanced-html-viewer-extension 1.0.22
File Size Uploaded
jupyterlab_advanced_html_viewer_extension-1.0.22.tar.gz 413.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jupyterlab-advanced-html-viewer-extension 1.0.22
File Interpreter ABI Platform
jupyterlab_advanced_html_viewer_extension-1.0.22-py3-none-any.whl Python 3 none any Details

Total release size: 612.7 kB

Release files / jupyterlab_advanced_html_viewer_extension-1.0.22.tar.gz

Download URL jupyterlab_advanced_html_viewer_extension-1.0.22.tar.gz
Size 413.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b7d50428f6563d2ce7c2852c8c52f118f442c988b3f694ee6e7283d836a801ba
BLAKE2b-256 checksum
How to use checksums
49e5c5e91cb6aaa9474e174a0366122c1ce752c9204e7c0cf1d85457235f84c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / jupyterlab_advanced_html_viewer_extension-1.0.22-py3-none-any.whl

Download URL jupyterlab_advanced_html_viewer_extension-1.0.22-py3-none-any.whl
Size 198.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ecff7bce48e4b0d13378191f0d2b3e256c3f8219a11089d936460ef5fc77b10b
BLAKE2b-256 checksum
How to use checksums
2c5ea63793f5bef1631c6f076d8ffd0a98b6e0634f4be257c6075e675e08bdd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

1.0.48

2 release files

1.0.45

2 release files

1.0.37

2 release files

This release

1.0.22 This release

2 release files

1.0.9

2 release files

1.0.7

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.2

2 release files

1.0.1

2 release files

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