# New p5py category

**URL:** <https://discourse.processing.org/t/new-p5py-category/23847>\
**Category:** Site Feedback\
**Created:** [September 13, 2020, 10:39pm UTC](https://discourse.processing.org/t/new-p5py-category/23847 "2020-09-13T22:39:03Z")\
**Posts on this page:** 2\
**Page:** 1

<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:** [September 13, 2020, 10:39pm UTC](https://discourse.processing.org/t/new-p5py-category/23847/1 "2020-09-13T22:39:03Z")

</div>

We have created a new category for questions related to p5py, as distinct from Processing.py / Python mode.

[https://discourse.processing.org/c/p5py/27](https://discourse.processing.org/c/p5py/27)

Until now our Processing.py category contains most python-related topics, including discussions of the Processing.py, p5py, pyp5js, et cetera. Just to review:

1. Processing.py is Python 2.7 syntax-to-Processing running as Java JVM bytecode with Jython, and supports Java libraries and “pure” (non-c) python libraries.
2. p5py is Python 3.x running native in Python, and supports any python libraries.
3. pyp5js is Python 3.x syntax-to-p5.js running as JavaScript in the browser with Transcrypt. It can be used with JavaScript libraries like p5.dom.js.

In the future if we have more activity in each we could make a general Python category and break each out into a subcategory, but we are keeping things simple for right now.

Feedback on organization / naming / et cetera is most welcome.

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [September 14, 2020, 12:36am UTC](https://discourse.processing.org/t/new-p5py-category/23847/2 "2020-09-14T00:36:02Z")

</div>

> [@jeremydouglass](#):
>
> In the future if we have more activity in each we could make a general Python category…

IMO we shouldn’t wait for the future and do it now before it gets more confusing.

> [@jeremydouglass](#):
>
> … Jython, and supports Java libraries and “pure” (non-c) python libraries.

Surprisingly Jython has a limited capacity to run CPython “.pyc” modules via pycimport:  
[Jython.ReadTheDocs.io/en/latest/ModulesPackages/#compilation](http://Jython.ReadTheDocs.io/en/latest/ModulesPackages/#compilation)

> <https://stackoverflow.com/questions/6689029/how-to-use-pycimport-module-of-jython>

> [@jeremydouglass](#):
>
> It can be used with JavaScript libraries like p5.dom.js.

The p5.js addon library “p5.dom.js” was removed at version 1.0.0 and then merged into the main “p5.js” library as it’s always been the plan but got delayed!
