is there any addition to python, or some program that has a graphical interface and translates it into code in the same file, i.e. this file can be opened graphically, and then continue working with it as with text. It be site and not use Python, but have?
I can't tell what you're asking, but my best guess is you're looking for something like Jupyter-notebooks.
Jupyter-notebook is an interactive python shell that allows you to work in "notebooks". The best way to describe them is they allow you write "blocks" of code and run them independently of the other blocks. It is very similar to matlab's code editor if you have every used the blocks in that. It has support for displaying matplotlib charts inline, and puts formatting on pandas dataframes.