# Python Processing and Anaconda

**URL:** <https://discourse.processing.org/t/python-processing-and-anaconda/5986>\
**Category:** Processing.py\
**Created:** [November 27, 2018, 6:03am UTC](https://discourse.processing.org/t/python-processing-and-anaconda/5986 "2018-11-27T06:03:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![borres](https://avatars.discourse-cdn.com/v4/letter/b/94ad74/32.png) [@borres](https://discourse.processing.org/u/borres)\
**Post date:** [November 27, 2018, 6:03am UTC](https://discourse.processing.org/t/python-processing-and-anaconda/5986/1 "2018-11-27T06:03:03Z")

</div>

Can I combine Processing in Python and Anaconda ?

---

<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:** [November 27, 2018, 9:46am UTC](https://discourse.processing.org/t/python-processing-and-anaconda/5986/2 "2018-11-27T09:46:54Z")

</div>

Processing’s Python Mode is based on Jython: ❗

> **[Jython](https://en.wikipedia.org/wiki/Jython)**
>
> Jython is an implementation of the Python programming language designed to run on the Java platform. It is the successor of JPython.
> Jython programs can import and use any Java class. Except for some standard modules, Jython programs use Java classes instead of Python modules. Jython includes almost all of the modules in the standard Python programming language distribution, lacking only some of the modules implemented originally in C. For example, a user interface in Jython could be written wit...

For an actual Python-based solution, you may try the Processing flavor p5py instead: 🐍

> **[p5py/p5](https://github.com/p5py/p5)**
>
> p5 is a Python package based on the core ideas of Processing. - p5py/p5

However, I’d say it’s pretty much in an alpha state yet. 😑

---

<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:** [December 5, 2018, 2:47am UTC](https://discourse.processing.org/t/python-processing-and-anaconda/5986/3 "2018-12-05T02:47:15Z")

</div>

You can also combine the old ProcessingJS (not p5js) JavaScript dialect with python Jupyter notebooks by using Calysto:

> **[GitHub - Calysto/calysto\_processing: Calysto Processing kernel for Jupyter](https://github.com/Calysto/calysto_processing)**
>
> Calysto Processing kernel for Jupyter. Contribute to Calysto/calysto\_processing development by creating an account on GitHub.

To use p5.js in a notebook environment, you can use Observable:

> [@Include p5.js in Observable notebook](https://discourse.processing.org/t/include-p5-js-in-observable-notebook/458):
>
> I have recently come across Observable notebooks and I would like to know how to include the p5.js library in the notebook. I have tried the following but it throws a syntax error. p5 = require(“[https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.6.1/p5.js](https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.6.1/p5.js)”) function setup() { createCanvas(800,300); background(220,220,220); } function draw() { // put drawing code here }

…but as far as Python-in-python, the alpha p5py is the only thing I am aware of.
