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.3.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.3-py3-none-any.whl (870.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: markmap_anywidget-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 dc2a06d2753a3970da43e472ad5c299fe80f9366f2ec9425565f3a376cecb82f
MD5 69b9ff38521160e02313e5c3b4744626
BLAKE2b-256 de5c99e878f923d3898562919790cc77ca5958443f6a5fad54ec2f851fc2d807

See more details on using hashes here.

Provenance

The following attestation bundles were made for markmap_anywidget-0.1.3.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.3-py3-none-any.whl.

File metadata

File hashes

Hashes for markmap_anywidget-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9b3043f5a8617cc5757977ac009add3f7232651077d3dbb8ba52018c993abbe6
MD5 bd29a567f411f35ad08e71a8cf4455cc
BLAKE2b-256 1a322a02cc218d17e71cbbe293501c456b47cccdd8732fc145a2e44858ec407e

See more details on using hashes here.

Provenance

The following attestation bundles were made for markmap_anywidget-0.1.3-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