lmcinnes / lmcinnes/umap

umap.plot.interactive broken in 0.4.6?

Open
#491 3 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
8.3k
Forks
871
Avg merge
1d 13h
Merged PRs (30d)
5

Description

I'm currently trying to use umap.plot.interactive with umap-learn==0.4.6 by following https://umap-learn.readthedocs.io/en/latest/plotting.html. I want to dump the resulting vis. either to disk or display it in the browser directly, without using a notebook.

However, neither umap.plot.output_notebook() nor similar functions exist in the current UMAP version. Furthermore, the output of umap.plot.interactive is of type holoviews.core.spaces.DynamicMap - umap.plot.show() expects an instance of type bpl.Figure. Even calling show_interactive() directly is not successful and results in RuntimeError: no display hook installed for notebook type None.

What is the correct way to plot with umap.plot.interactive?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the plotting documentation linked in the issue and the umap.plot.interactive, output_notebook, show, and show_interactive entry points. Reproduce the behavior with umap-learn 0.4.6 outside a notebook, then determine and document a working browser or file-output path and verify it avoids the reported DynamicMap and display-hook errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization, machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.