Hacker News new | ask | show | jobs
by xiasongh 1034 days ago
https://chrome.google.com/webstore/detail/jpt-chatgpt-code-i...

I've been working on a chrome extension that let's you run python code in ChatGPT. You can see the output, see plots with matplotlib, upload and download files, use a bunch of packages, all thanks to Pyodide[0]. Basically ChatGPT's own code interpreter but worse (it's also free, you get what you pay for). It was important to me that it works completely locally and does not save any data.

It is one of my first personal projects and seeing the number of users go up makes me happy and want to keep improving it. I had to make my github repo private because I had an issue with a copycat, but I can make it public if people actually care.

[0] https://pyodide.org/en/stable/

1 comments

This is very cool! I just downloaded the extension and tried a hello world program. Will tinker a bit more.

If you can make a library to run python code inside a JS project (like Next JS) then we could build a code interpreter in Next JS. Would be super cool. Here is a python implementation - https://github.com/shroominic/codeinterpreter-api - for your reference.

> If you can make a library to run python code inside a JS project

This is actually exactly what Pyodide does! It's basically the CPython interpreter compiled to wasm. This will allow you to run python code in, say, NextJS.