# Convert Python to Javascript

**URL:** <https://discourse.psychopy.org/t/convert-python-to-javascript/10435>\
**Category:** Other\
**Created:** [January 3, 2020, 2:33pm UTC](https://discourse.psychopy.org/t/convert-python-to-javascript/10435 "2020-01-03T14:33:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![55555](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/55555/32/6104_2.png) [@55555](https://discourse.psychopy.org/u/55555)\
**Post date:** [January 3, 2020, 2:33pm UTC](https://discourse.psychopy.org/t/convert-python-to-javascript/10435/1 "2020-01-03T14:33:38Z")

</div>

How do I convert Python to Javascript?  
I tried using Export HTML and I get following errors

 ![image](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/d/3/d346ead470ea50ccfe39529ddd7dc535e05433db.png)

Is there other ways of converting?

---

<div class="post-metadata">

**Author:** ![dvbridges](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/dvbridges/32/1918_2.png) [@dvbridges](https://discourse.psychopy.org/u/dvbridges)\
**Post date:** [January 3, 2020, 8:11pm UTC](https://discourse.psychopy.org/t/convert-python-to-javascript/10435/2 "2020-01-03T20:11:09Z")

</div>

Hi @55555, if you have a code component, it would be useful if you could show the code that needs translating.

---

<div class="post-metadata">

**Author:** ![55555](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/55555/32/6104_2.png) [@55555](https://discourse.psychopy.org/u/55555)\
**Post date:** [January 4, 2020, 4:05am UTC](https://discourse.psychopy.org/t/convert-python-to-javascript/10435/3 "2020-01-04T04:05:44Z")

</div>

Thank you for the fast reply, following shows the line where the error happened

 ![image](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/f/f/fff5e700da1f51197c979fec93e2490420094bab.png)

---

<div class="post-metadata">

**Author:** ![dvbridges](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/dvbridges/32/1918_2.png) [@dvbridges](https://discourse.psychopy.org/u/dvbridges)\
**Post date:** [January 4, 2020, 12:11pm UTC](https://discourse.psychopy.org/t/convert-python-to-javascript/10435/4 "2020-01-04T12:11:28Z")

</div>

@55555, could you share the link to your project repository on Pavlovia? If not, then would you mind sharing the conditions file?

---

<div class="post-metadata">

**Author:** ![55555](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/55555/32/6104_2.png) [@55555](https://discourse.psychopy.org/u/55555)\
**Post date:** [January 5, 2020, 12:04pm UTC](https://discourse.psychopy.org/t/convert-python-to-javascript/10435/5 "2020-01-05T12:04:56Z")

</div>

I don’t have Pavlovia… how do you want me to share the file?

---

<div class="post-metadata">

**Author:** ![dvbridges](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/dvbridges/32/1918_2.png) [@dvbridges](https://discourse.psychopy.org/u/dvbridges)\
**Post date:** [January 5, 2020, 4:35pm UTC](https://discourse.psychopy.org/t/convert-python-to-javascript/10435/6 "2020-01-05T16:35:21Z")

</div>

You can share the file here by dragging and dropping the file onto the reply, if that is ok.

---

<div class="post-metadata">

**Author:** ![55555](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/55555/32/6104_2.png) [@55555](https://discourse.psychopy.org/u/55555)\
**Post date:** [January 8, 2020, 2:01am UTC](https://discourse.psychopy.org/t/convert-python-to-javascript/10435/7 "2020-01-08T02:01:17Z")

</div>

Unfortunately I am not allowed to do so… Could you tell me how you would debug though?
