# Activate a python function when clicking on a cell!

**URL:** <https://discuss.streamlit.io/t/activate-a-python-function-when-clicking-on-a-cell/45904>\
**Category:** Using Streamlit\
**Created:** [June 23, 2023, 10:05am UTC](https://discuss.streamlit.io/t/activate-a-python-function-when-clicking-on-a-cell/45904 "2023-06-23T10:05:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Omri\_Ben-Shahar](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/omri_ben-shahar/32/25406_2.png) [@Omri\_Ben-Shahar](https://discuss.streamlit.io/u/Omri_Ben-Shahar)\
**Post date:** [June 23, 2023, 10:05am UTC](https://discuss.streamlit.io/t/activate-a-python-function-when-clicking-on-a-cell/45904/1 "2023-06-23T10:05:47Z")

</div>

### Summary

Hi 🙂 I’m using streamlit for a few months now and right from the start of my usage I tried to find a way to activate a python function by clicking on a cell. Still didn’t find a solution. I will prefer to find a way doing it using streamlit-aggrid component, but it will be also great if it will be available using the regular dataframe.

**Expected behavior:**

Being able to click on a cell to activate a function

---

<div class="post-metadata">

**Author:** ![tonykip](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/tonykip/32/45167_2.png) [@tonykip](https://discuss.streamlit.io/u/tonykip)\
**Post date:** [June 23, 2023, 4:31pm UTC](https://discuss.streamlit.io/t/activate-a-python-function-when-clicking-on-a-cell/45904/2 "2023-06-23T16:31:43Z")

</div>

Hi @Omri_Ben-Shahar,

Thank you for sharing your question with the community!

Your post is missing a code snippet and a link to your app’s GitHub repo. Please check out our guidelines on how to post an effective question [here](https://discuss.streamlit.io/t/how-to-post-a-question-in-the-streamlit-forum/30960) and update your post to help the community answer your question.

---

<div class="post-metadata">

**Author:** ![Omri\_Ben-Shahar](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/omri_ben-shahar/32/25406_2.png) [@Omri\_Ben-Shahar](https://discuss.streamlit.io/u/Omri_Ben-Shahar)\
**Post date:** [June 24, 2023, 9:07am UTC](https://discuss.streamlit.io/t/activate-a-python-function-when-clicking-on-a-cell/45904/3 "2023-06-24T09:07:08Z")

</div>

Hi. Sorry I don’t have a link to a github repo, that’s because I don’t have a project that I can share.  
I think it’s more of an abroad question which you don’t have to see a specific code to undarstand my question.  
Thanks for the reply!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/streamlit/original/3X/c/f/cf4c2ee0d938358f82448c5fe4b9c3c91d7ce19c.svg) [@system](https://discuss.streamlit.io/u/system)\
**Post date:** [December 21, 2023, 9:07am UTC](https://discuss.streamlit.io/t/activate-a-python-function-when-clicking-on-a-cell/45904/4 "2023-12-21T09:07:55Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
