# Start Python-script from Orthanc-Explorer

**URL:** https://discourse.orthanc-server.org/t/start-python-script-from-orthanc-explorer/3776
**Category:** General
**Created:** [August 7, 2023, 2:09pm UTC](https://discourse.orthanc-server.org/t/start-python-script-from-orthanc-explorer/3776 "2023-08-07T14:09:29Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![GVerheij](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/gverheij/32/1664_2.png) [@GVerheij](https://discourse.orthanc-server.org/u/GVerheij)
#### Post date: [August 7, 2023, 2:09pm UTC](https://discourse.orthanc-server.org/t/start-python-script-from-orthanc-explorer/3776/1 "2023-08-07T14:09:30Z")

</div>

Hi,

Is it possible to add a (new webpage with a) button to Orthanc-explorer and start a python-script when the button is pushed?

Why this question? I am busy creating a Python-script to convert a appointments-report (Excel) from our EMR into WL-files for our ultrasound-modalities (C-Find). We want to create the worklists from the Orthanc Explorer UI, also for testing, and later, with a simular Python-script, when the script is triggered by a C-Find from a modality.

Thank you!

Thanks, Gerard Verheij  
(If you like, read the introduction in my profile)

---

<div class="post-metadata">

### Author: ![jodogne](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/jodogne/32/1511_2.png) [@jodogne](https://discourse.orthanc-server.org/u/jodogne)
#### Post date: [August 29, 2023, 12:07pm UTC](https://discourse.orthanc-server.org/t/start-python-script-from-orthanc-explorer/3776/2 "2023-08-29T12:07:52Z")

</div>

Dear Gerard,

I have just added a new [sample in the Orthanc Book](https://book.orthanc-server.com/plugins/python.html#extending-the-orthanc-explorer-interface) to show how to add a new button in Orthanc Explorer that triggers a Python plugin.

Kind Regards,  
Sébastien-

---

<div class="post-metadata">

### Author: ![GVerheij](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/gverheij/32/1664_2.png) [@GVerheij](https://discourse.orthanc-server.org/u/GVerheij)
#### Post date: [September 26, 2023, 9:38am UTC](https://discourse.orthanc-server.org/t/start-python-script-from-orthanc-explorer/3776/3 "2023-09-26T09:38:52Z")

</div>

Hi Sebastien, Fantastic, thank you. I’m going to add the button to the explorer and explore how it works.

I will attend the GHCon2023 in Hannover end of this week, I hope to see you there.

Regards, Gerard

---

<div class="post-metadata">

### Author: ![jodogne](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/jodogne/32/1511_2.png) [@jodogne](https://discourse.orthanc-server.org/u/jodogne)
#### Post date: [September 26, 2023, 12:43pm UTC](https://discourse.orthanc-server.org/t/start-python-script-from-orthanc-explorer/3776/4 "2023-09-26T12:43:29Z")

</div>

Dear Gerard,

> [@GVerheij](#):
>
> I will attend the GHCon2023 in Hannover end of this week, I hope to see you there.

Yes, I’ll be present for sure!

See you in Hanover,  
Sébastien-
