# Python

**URL:** https://forum.makecode.com/t/python/2670
**Category:** Adafruit Circuit Playground Express
**Created:** [July 5, 2020, 6:02pm UTC](https://forum.makecode.com/t/python/2670 "2020-07-05T18:02:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jbw](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jbw/32/495_2.png) [@jbw](https://forum.makecode.com/u/jbw)
#### Post date: [July 5, 2020, 6:02pm UTC](https://forum.makecode.com/t/python/2670/1 "2020-07-05T18:02:20Z")

</div>

I see that the git mainline has support for Python. I would like to incorporate python into pxt-sample. I tried the obvious of adding the python entries found in `pxtarget.json` from pxt-adafruit to pxt-sample. No luck. Where is the documentation on adding python to pxt or what am I missing in moving what works in pxt-adafruit into pxt-sample?

---

<div class="post-metadata">

### Author: ![shakao](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/shakao/32/113_2.png) [@shakao](https://forum.makecode.com/u/shakao)
#### Post date: [July 6, 2020, 4:06pm UTC](https://forum.makecode.com/t/python/2670/2 "2020-07-06T16:06:22Z")

</div>

Oh, it looks like the package.json in the pxt-sample repo is pretty out of date! You’ll want the dependencies and devDependencies in that file to look like this:

```
"devDependencies": {
    "typescript": "^3.7.5",
    "semantic-ui-less": "2.2.14",
    "@types/bluebird": "2.0.33",
    "@types/jquery": "3.3.29",
    "@types/marked": "0.3.0",
    "@types/node": "8.0.53"
},
"dependencies": {
    "pxt-core": "6.0.1"
}

```

Specifically, you should update the versions for pxt-core, typescript, and @types/jquery. (You can also use ^6.1.22 for pxt-core, which is the latest version with some extra features and fixes.) You may also need to run `pxt buildcss --force` to update all the CSS after you run `npm install` again.

Hope that helps!

---

<div class="post-metadata">

### Author: ![jbw](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jbw/32/495_2.png) [@jbw](https://forum.makecode.com/u/jbw)
#### Post date: [July 6, 2020, 4:51pm UTC](https://forum.makecode.com/t/python/2670/3 "2020-07-06T16:51:26Z")

</div>

what you have below plus

```auto
diff --git a/pxtarget.json b/pxtarget.json
index 1116e06..e950b06 100644
--- a/pxtarget.json
+++ b/pxtarget.json
@@ -42,7 +42,7 @@
 "monacoToolbox": true,
 "invertedMenu": true,
 "showHomeScreen": true,
- "homeScreenHero": "./static/hero.png",
+ "homeScreenHero": "./static/hero.png",
 "blocklyOptions": {
 "grid": {
 "spacing": 45,
@@ -51,6 +51,8 @@
 "snap": true
 }
 },
+ "python": true,
+ "pythonToolbox": true,
 "simAnimationEnter": "fly right in",
 "simAnimationExit": "fly right out",
 “scriptManager": true,

```

Gives me `python` blocks.

Thank you so much.
