With this version update, you can easily run ChatGPT's PythonCode.
(Bugfix version: Icon is hidden in chatGPT, because the URL has changed)
WebPage has many sample codes that are useful for learning and checking code. However, executing it is troublesome, but by using this function you can execute it immediately (GUI compatible).
(1 step: Just click this icon on the CharGPT site)
(3 steps: For other sites, select, Ctrl+c, click the expansion icon)
You can immediately execute the target code after changing it. (with some sample buttons)
・Display Python code with the Code button etc.
・Change the code
・Click the RUN button to execute
(Use the RUN and STOP buttons to run and stop Python code)
Benefits (ChatGPT site)
Let's install the extension. Check the executable Python code in the GPT answer, and the icon of this extension will be displayed below it.
It is convenient because the execution results are displayed immediately with a click.
Advantages (other than ChatGPT sites)
You can immediately run Python code (GUI compatible)
Select the code to be executed using the mouse or keyboard. Just copy it to the clipboard with \"Ctrl+C\" and click the extension icon.
Switch display
Default display allows GUI, standard input and output
GUI button: Display in GUI (Tkinter, PySimpleGUI, etc. can be seen)
Out button: GUI and standard input and output (pyhton language input and print possible)
Pnl button: source, GUI, standard input, output
(important point)
*Does not work with languages other than Python, local files cannot be used as it uses a server
*Files on the browser side cannot be accessed *Python is executed on the server for GUI support
(Irregular maintenance required)
*Please post any bugs or requests from the support page.
*Support page is in Japanese, but English is also available
*For security reasons, please do not write personal information such as user ID or key in the code (enter it using input)
*print statement now works without \"flush=True\"
*Errors will be colored on the corresponding line in the code pane