# Is there a sort of API with which we can run processing.py in a server?

**URL:** <https://discourse.processing.org/t/is-there-a-sort-of-api-with-which-we-can-run-processing-py-in-a-server/13020>\
**Category:** Processing.py\
**Created:** [July 28, 2019, 8:46am UTC](https://discourse.processing.org/t/is-there-a-sort-of-api-with-which-we-can-run-processing-py-in-a-server/13020 "2019-07-28T08:46:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Procoder](https://avatars.discourse-cdn.com/v4/letter/p/9de0a6/32.png) [@Procoder](https://discourse.processing.org/u/Procoder)\
**Post date:** [July 28, 2019, 8:46am UTC](https://discourse.processing.org/t/is-there-a-sort-of-api-with-which-we-can-run-processing-py-in-a-server/13020/1 "2019-07-28T08:46:21Z")

</div>

I am trying to figure out a way to create a web editor for processing.py using codemirror . I think I have to create a custom mode for processing.py for codemirror and also I have to figure out a way to run the code. If there’s some API running the code will be a bit easier in the server.

Also if you can help me creating codemirror or ACE custom mode for processing.py please do!!

---

<div class="post-metadata">

**Author:** ![tabreturn](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tabreturn/32/3697_2.png) [@tabreturn](https://discourse.processing.org/u/tabreturn)\
**Post date:** [July 28, 2019, 10:40am UTC](https://discourse.processing.org/t/is-there-a-sort-of-api-with-which-we-can-run-processing-py-in-a-server/13020/2 "2019-07-28T10:40:09Z")

</div>

I’m not familiar with CodeMirror, but it looks like creating the custom mode will be the easy part (it already appears to have a Python mode you could extend upon).

I’m guessing you’d like to create something like this?  
[https://trinket.io/processing](https://trinket.io/processing)

For ideas about running the code, check out this post:  
[https://discourse.processing.org/t/running-python-code-in-a-browser/236/6](https://discourse.processing.org/t/running-python-code-in-a-browser/236/6)
