Comments (3)
I am not 100% sure what you're looking for but with jscatter it's really easy to extract the point IDs of selected points.
All you have to do is select points in the scatterplot using the lasso. Afterward you can retrieve the point IDs using scatter.selection()
. See https://github.com/flekschas/jupyter-scatter/blob/master/API.md#scatter.selection
You can also programmatically select points via scatter.selection(pointIds)
and zoom to selected points scatter.zoom(scatter.selection())
Using the selection method you can easily build your own custom annotation widget. See for instance the first 10 seconds of the video from https://twitter.com/flekschas/status/1528753226895577089. You could turn the image rendering into a widget itself that auto-updates upon changes to scatter.selection()
.
The only extra thing you'd need to assign labels is a text and button widget. Fortunately, ipywidgets provides both already:
- https://ipywidgets.readthedocs.io/en/7.6.2/examples/Widget%20List.html#Text
- https://ipywidgets.readthedocs.io/en/7.6.2/examples/Widget%20List.html#Button
Does this help?
from jupyter-scatter.
This sounds perfect! Thanks a lot I basically want bulk (https://github.com/koaning/bulk), but I've found it's not scalable to my datasets.
from jupyter-scatter.
Closing this ticket now as I think the question is answered
from jupyter-scatter.
Related Issues (20)
- Incompatibility with ipywidgets v8 and jupyter-widgets v3 HOT 2
- Demo fails on load HOT 14
- how to get selected points after linking? HOT 3
- Reversing the size map is not properly reflected in the legend
- jupyter-scatter 0.10.0 doesn't work for me HOT 7
- Add the ability to visually filter points and update the data HOT 5
- Allow defining the point reference HOT 5
- scatter.selection() returns empty list after lasso selection - need help debugging HOT 3
- The legend's value labels are ordered incorrectly
- [Feature Request] Text Overlays HOT 3
- Unable to reproduce simple example in Jupyter lab HOT 2
- Feature Request: Download visualizations as HTML & Javascript HOT 4
- Enable pure JS linking of the view, selection, and hover state
- streamlit integration HOT 3
- Linked plots do not show x axis HOT 2
- Axes of linked scatter plots do not update upon pan and zoom
- The behavior of opacity_by is inconsistent with documentation HOT 4
- Warning in colab HOT 5
- Reuse categorical color encoding in tooltip barchart
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jupyter-scatter.