Skip to content

Conversation

@vasslitvinov
Copy link

@vasslitvinov vasslitvinov commented Feb 5, 2025

This PR improves the arkouda_viz packages as follows:

  • Updates the package to a recent version of holoviews. Tested with Holoviews 1.20.

  • Introduces caching in the explore() function. This way it avoids recomputing the hashtable for the second time, which can happen due to how holoviews' "stream" machinery works. This also preserves the current zoom/position in the histogram while changing color maps.

  • Updates the README to list correctly the functions that are available and to display the logo.

  • Other fixes in explore() and other minor fixes and cleanups.

  • Removes an explicit dependence on bokeh, which is helpful when this package is not installed. arkouda_viz should work without bokeh.

  • Enables the user to set the default engine for all future calls to the API functions by updating arkouda_viz.default_engine

  • Bumps the package minor version by 1.

The changes in explore() require Arkouda's histogram-2D API to accept the range argument, Bears-R-Us/arkouda#4078

Signed-off-by: Vassily Litvinov <vasslitvinov@users.noreply.github.com>
Copy link

@e-kayrakli e-kayrakli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the caveat that this is the first time I am seeing this code, it looks good to me!

@vasslitvinov vasslitvinov marked this pull request as draft February 12, 2025 23:27
@vasslitvinov
Copy link
Author

I converted this PR to a draft, pending resolution of conflicts with main.

github-merge-queue bot pushed a commit to Bears-R-Us/arkouda that referenced this pull request Apr 23, 2025
Closes #4096. Required by
Bears-R-Us/arkouda-contrib#179

Adds `numpy`-style optional `range` parameter to client histogram
functions:
* `histogram()`
* `histogram2d()`
* `histogramdd()`

Switches the histograms produced by `histogramdd()` to contain `float`
counts instead of integer counts, to match `numpy`.

While there:

* Makes `histogramdDMsg()` more efficient.
* Factors out some histogram server code.
* Removes the dependence of `histogramdd()` on `cumprod()`.
* Cleans up Makefile to remove an extraneous `/` and trailing
whitespace.

Signed-off-by: Vassily Litvinov <vasslitvinov@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants