# Using drag select (lasso) as input

**URL:** <https://community.plotly.com/t/using-drag-select-lasso-as-input/989>\
**Category:** Plotly Fundamentals\
**Created:** [May 6, 2016, 9:09pm UTC](https://community.plotly.com/t/using-drag-select-lasso-as-input/989 "2016-05-06T21:09:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![leon](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/leon/32/264_2.png) [@leon](https://community.plotly.com/u/leon)\
**Post date:** [May 6, 2016, 9:09pm UTC](https://community.plotly.com/t/using-drag-select-lasso-as-input/989/1 "2016-05-06T21:09:00Z")

</div>

I saw a few R apps that use the lasso select tool to generate additional plots.  
IE in Kyle Walkers latest application:

```auto
# Drag event for the scatterplot; will grab tractids of selected points
sub <- reactive({
    eventdata <- event_data('plotly_selected', source = 'source')
    ...

```

Is there a way to do this in Python too?  
Can’t find any docs or examples on the topic

---

<div class="post-metadata">

**Author:** ![jack](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/jack/32/11_2.png) [@jack](https://community.plotly.com/u/jack)\
**Post date:** [May 12, 2016, 5:25pm UTC](https://community.plotly.com/t/using-drag-select-lasso-as-input/989/2 "2016-05-12T17:25:17Z")

</div>

Hey @leon, We’re (slowly) working on a “Python version of R Shiny” that will be perfect for this: [https://github.com/plotly/dash/](https://github.com/plotly/dash/) Stay tuned and ping us if you want to get involved 🙂

---

<div class="post-metadata">

**Author:** ![leon](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/leon/32/264_2.png) [@leon](https://community.plotly.com/u/leon)\
**Post date:** [May 18, 2016, 12:23am UTC](https://community.plotly.com/t/using-drag-select-lasso-as-input/989/3 "2016-05-18T00:23:10Z")

</div>

Hi Jack,

Thanks the update!  
What language would this be implemented in-- JavaScript?

Will follow up off form!
