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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2539a2037d982b3cb1a1430a6ca4962848698b5446546433e1b0a76c717a87ff
|
|
| MD5 |
aa835b3088bc45e0e836ebe3b87d0a1c
|
|
| BLAKE2b-256 |
37d355233e557c63b143f1bfa69a11aef64db48b6bec86f02c09ee6fb40c7764
|
Provenance
The following attestation bundles were made for markmap_anywidget-0.1.2.tar.gz:
Publisher:
workflow.yml on daniel-fahey/markmap-anywidget
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
markmap_anywidget-0.1.2.tar.gz -
Subject digest:
2539a2037d982b3cb1a1430a6ca4962848698b5446546433e1b0a76c717a87ff - Sigstore transparency entry: 469659134
- Sigstore integration time:
-
Permalink:
daniel-fahey/markmap-anywidget@aacc5390296b894dcf3cdf7545180f3915732486 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/daniel-fahey
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@aacc5390296b894dcf3cdf7545180f3915732486 -
Trigger Event:
release
-
Statement type:
File details
Details for the file markmap_anywidget-0.1.2-py3-none-any.whl.
File metadata
- Download URL: markmap_anywidget-0.1.2-py3-none-any.whl
- Upload date:
- Size: 870.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a05624fac52498c2b71eb10fc434e887380bc838e9ddfdfeafb686a3bf51acac
|
|
| MD5 |
3f854d64bc3c0747ed1a01d47f2f6230
|
|
| BLAKE2b-256 |
fd6baaeb8da1a096753fc40dac8dfc7a60a147ecbc1a9a833ea1a6a7dd657c45
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
markmap_anywidget-0.1.2-py3-none-any.whl -
Subject digest:
a05624fac52498c2b71eb10fc434e887380bc838e9ddfdfeafb686a3bf51acac - Sigstore transparency entry: 469659156
- Sigstore integration time:
-
Permalink:
daniel-fahey/markmap-anywidget@aacc5390296b894dcf3cdf7545180f3915732486 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/daniel-fahey
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@aacc5390296b894dcf3cdf7545180f3915732486 -
Trigger Event:
release
-
Statement type: