Skip to main content

anywidget to make interactive mindmaps from markdown using markmap in interactive computing environments

Project description

markmap-anywidget

A simple anywidget implementation of markmap for Jupyter and marimo notebooks.

Installation

# Using pip
pip install markmap-anywidget

# Using uv
uv add markmap-anywidget

Usage with marimo

See the marimo documentation for more information on using anywidget.

import marimo as mo
from markmap_anywidget import MarkmapWidget

widget = mo.ui.anywidget(
    MarkmapWidget(
        markdown_content="""
---
markmap:
  colorFreezeLevel: 2
  maxWidth: 300
---

# markmap

## Links
- [Website](https://markmap.js.org/)
- [GitHub](https://github.com/gera2ld/markmap)

## Features
- `inline code`
- **strong** and *italic*
- Katex: $x = {-b \pm \sqrt{b^2-4ac} \over 2a}$
"""
    )
)

# In a marimo cell, displaying the widget is enough
widget

Development

This project uses Nix with nix-direnv for a reproducible development environment.

# Clone the repository
git clone git@github.com:daniel-fahey/markmap-anywidget.git
cd markmap-anywidget

# Enter Nix development environment
direnv allow

# Install dependencies
uv sync

# Build JavaScript assets (see Makefile for more targets)
make build

To watch for changes and automatically rebuild:

make dev

Run the marimo example:

uv run python -m marimo edit --watch examples/marimo.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

markmap_anywidget-0.1.2.tar.gz (868.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

markmap_anywidget-0.1.2-py3-none-any.whl (870.6 kB view details)

Uploaded Python 3

File details

Details for the file markmap_anywidget-0.1.2.tar.gz.

File metadata

  • Download URL: markmap_anywidget-0.1.2.tar.gz
  • Upload date:
  • Size: 868.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for markmap_anywidget-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2539a2037d982b3cb1a1430a6ca4962848698b5446546433e1b0a76c717a87ff
MD5 aa835b3088bc45e0e836ebe3b87d0a1c
BLAKE2b-256 37d355233e557c63b143f1bfa69a11aef64db48b6bec86f02c09ee6fb40c7764

See more details on using hashes here.

Provenance

The following attestation bundles were made for markmap_anywidget-0.1.2.tar.gz:

Publisher: workflow.yml on daniel-fahey/markmap-anywidget

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file markmap_anywidget-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for markmap_anywidget-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a05624fac52498c2b71eb10fc434e887380bc838e9ddfdfeafb686a3bf51acac
MD5 3f854d64bc3c0747ed1a01d47f2f6230
BLAKE2b-256 fd6baaeb8da1a096753fc40dac8dfc7a60a147ecbc1a9a833ea1a6a7dd657c45

See more details on using hashes here.

Provenance

The following attestation bundles were made for markmap_anywidget-0.1.2-py3-none-any.whl:

Publisher: workflow.yml on daniel-fahey/markmap-anywidget

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page