JPT is a Chrome extension that allows users to run Python code directly within ChatGPT instead of copying and pasting code back and forth. Users can leverage the full power of the Python ecosystem with access to libraries such as numpy, scipy, and matplotlib.
The tool uses Pyodide, a WASM-based Python interpreter, which means that code execution happens entirely within the browser. The only parties that can see the code are the user and OpenAI.
However, the extension still has some bugs and requires further development before it can offer a true Jupyter Notebook experience in ChatGPT. To use JPT, users can ask ChatGPT to write a hello world program in Python and then press the "Run" button.
The first run may take some time, but subsequent runs should be faster. Users can edit the Python code by pressing the "Edit" button, which does not persist but is available for current use.
Additionally, to import Python packages, users can use micropip, such as `micropip.install("scipy")`. JPT offers the ability to run Python code, edit Python code, view stdout output, and view matplotlib plots.
However, JPT can freeze if an infinite loop occurs, requiring a restart of the extension. JPT does not support user input, but developers intend to add this feature in the future, along with support for local file systems, exporting chats as notebooks, and reducing the extension size.