# py.Processing with PyCharm?

**URL:** <https://discourse.processing.org/t/py-processing-with-pycharm/14236>\
**Category:** Processing.py\
**Created:** [September 27, 2019, 12:20pm UTC](https://discourse.processing.org/t/py-processing-with-pycharm/14236 "2019-09-27T12:20:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![nemecsek69](https://avatars.discourse-cdn.com/v4/letter/n/dbc845/32.png) [@nemecsek69](https://discourse.processing.org/u/nemecsek69)\
**Post date:** [September 27, 2019, 12:20pm UTC](https://discourse.processing.org/t/py-processing-with-pycharm/14236/1 "2019-09-27T12:20:28Z")

</div>

Hi.  
I am using the Python mode, but would like MORE.  
Being a Pyhon developer I would like to use PyCharm as my IDE of choice (and possibly execute the code from there).  
Is this possible?

---

<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:** [September 27, 2019, 11:33pm UTC](https://discourse.processing.org/t/py-processing-with-pycharm/14236/2 "2019-09-27T23:33:30Z")

</div>

Welcome, nemecsek69!

Processing.py runs on Jython – a Java implementation of Python. So, this would require a custom PyCharm run/debug configuration and the command-line version of Processing.py.

This is how I managed to get it working:

1. Download the command line version of Processing.py for your platform: [https://py.processing.org/tutorials/command-line](https://py.processing.org/tutorials/command-line)

2. Extract the contents wherever you wish (this could even be your working project directory)

3. In PyCharm, create a new project (a new environment or existing Python interpreter will work fine) and select **Run \> Edit Configurations**

4. Click the **+** to create a new configuration; leave the **Script path** field empty (just ignore the warning); in the **Parameters** field enter:  
`-c "import os; os.system('path_to\processing-py.bat script_name.pyde')"`

The `processing-py.bat` is the location of the _.bat_ file in your extracted download location. For Linux/Mac, this would be an _.sh_ or _.app_ file.  
The `script_name.pyde` is the filename of the Processing script you’re writing.

You can now run scripts using **Run \> Run _your\_config\_name_**.

For error and console output, look for the _.err.txt_ and _.out.txt_ files alongside your _.pyde_ file. I usually monitor these using a separate terminal window(s), using a `tail -f` command.

---

<div class="post-metadata">

**Author:** ![nemecsek69](https://avatars.discourse-cdn.com/v4/letter/n/dbc845/32.png) [@nemecsek69](https://discourse.processing.org/u/nemecsek69)\
**Post date:** [September 30, 2019, 12:17pm UTC](https://discourse.processing.org/t/py-processing-with-pycharm/14236/3 "2019-09-30T12:17:08Z")

</div>

Thank you, @tabreturn. Your solution is very straightforward, I didn’t think about it.  
At the moment nothing works, I saw only now that I need JRE 8u202 ☹  
But I am positive.

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [October 4, 2019, 1:55am UTC](https://discourse.processing.org/t/py-processing-with-pycharm/14236/4 "2019-10-04T01:55:27Z")

</div>

You may also be interested in p5py – it is limited and in early development compared to Python mode, but runs native python3.

---

<div class="post-metadata">

**Author:** ![Abdulla060](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@Abdulla060](https://discourse.processing.org/u/Abdulla060)\
**Post date:** [April 7, 2020, 8:23am UTC](https://discourse.processing.org/t/py-processing-with-pycharm/14236/5 "2020-04-07T08:23:37Z")

</div>

Hello  
I’ve written a full guide on how to use PyCharm with Processing and with near full IntelliSense support for all the builtin functions. if anyone is interested it is on GitHub [Here](https://github.com/Abdulla060/Processing.py-intellisense)

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [April 7, 2020, 10:00pm UTC](https://discourse.processing.org/t/py-processing-with-pycharm/14236/6 "2020-04-07T22:00:09Z")

</div>

Thank you so much for sharing this! Also, very helpful documentation.

Only if you were interested, I wonder if this could be rolled into the processing.py official release somehow…? I’m not sure if / how you modified the processing-py.jar – if you didn’t, then I could imagine the .pyi / instructions / example being bundled with the library. Assuming jdf liked the idea, of course. @villares might have some thoughts.

---

<div class="post-metadata">

**Author:** ![Abdulla060](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@Abdulla060](https://discourse.processing.org/u/Abdulla060)\
**Post date:** [April 7, 2020, 11:13pm UTC](https://discourse.processing.org/t/py-processing-with-pycharm/14236/7 "2020-04-07T23:13:32Z")

</div>

I absolutly don’t mind. and actually i didn’t modify processing-py.jar i only included it for ease of setup. i only created the stub file “lib/Processing3.pyi”. the guide i wrote was designed to try to fully integrate Processing.py with PyCharm but in reality if someone is only intrested in the intellisense part, the only thing they need to do is to place “Processing3.pyi” file at the root of thier project and then import it using my statemant “if False import…etc” and then run the sketch as normal using the terminal “java -jar processing-py.jar sketch.py”.

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [April 8, 2020, 10:43pm UTC](https://discourse.processing.org/t/py-processing-with-pycharm/14236/8 "2020-04-08T22:43:40Z")

</div>

Continued in full post here:

> [@\[Tutorial\] How to use Processing.py with PyCharm and intellisense](https://discourse.processing.org/t/tutorial-how-to-use-processing-py-with-pycharm-and-intellisense/19495):
>
> Hello everyone. in the past few days, I’ve been kinda bored sitting at home all day. so I’ve decided to write a stub file for the Processing.py along with a full tutorial on how to make it work in PyCharm. the full tutorial is available in my [repo](https://github.com/Abdulla060/Processing.py-intellisense). The stub file is still in the early stages and needs some more work. nonetheless, it works really well and as a plus, you get to use the weirdest import statement you have ever seen!. looking forward to your advice on how to improve it. Regards
