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
  • Shows a page on the whole screen - the full-screen button on the toolbar shows the page alone on the whole screen, as it is, with the keyboard on the page; Escape returns to the lab
  • Remembers trust in the file - Trust HTML, or the Always trust this page checkbox beside it, writes this lab's signature of the file's path into the file's settings line, so the file opens trusted next time, also after an agent rewrites it, while the line stays; Distrust HTML, or clearing the checkbox, takes it out. A signature made in another lab, or for another path, trusts nothing, so a downloaded file cannot trust itself
  • Scrollbar follows the lab theme - the page's scrollbar, and any scrolling area inside it, takes the colours of the current JupyterLab theme; switching the theme recolours it without reloading the page
  • Wide pages fit the frame - a page wider than the frame is scaled down to the frame's width before trust as well as after, and a page that fits keeps its own size; opening the notes panel, resizing the window or going full screen fits it again without a reload
  • 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
  • Marks the tab of a changed file - while changes arrive, a half-filled circle before the tab's name swaps its filled half from side to side, faster the more changes arrive. Changes that arrived while the tab was behind another leave a dot in the theme's brand colour until you bring the tab to the front. The tab's tooltip says what the marker means, and the Tab marker setting switches it off
  • 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.58

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.58
File Size Uploaded Provenance
jupyterlab_advanced_html_viewer_extension-1.0.58.tar.gz 483.4 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 692.0 kB

Release files / jupyterlab_advanced_html_viewer_extension-1.0.58.tar.gz

Download URL jupyterlab_advanced_html_viewer_extension-1.0.58.tar.gz
Size 483.4 kB
Tags Source
SHA-256 checksum
How to use checksums
feab7ebc7e70946f15d332a3159a8cb0751880961da02c2ba74c877f621de038
BLAKE2b-256 checksum
How to use checksums
c65b0b6868f69fb3519c94eb0720f5c78efeb54c609099e486a35839213d167f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

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

Download URL jupyterlab_advanced_html_viewer_extension-1.0.58-py3-none-any.whl
Size 208.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
607dddd903a1d96bed49463b32839c2766b5bae10e2e49294dece88baabf95c1
BLAKE2b-256 checksum
How to use checksums
8ff94d94134f7f0c271f98f5f2e4a53f11d858f93f3c6d5162f5c969889d7967
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for jupyterlab-advanced-html-viewer-extension 1.0.58

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.

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