Added PythonEditor component. I have tested it with all of the lab assignments of the first year Python course from a.y. 2020/2021, and everything seems to be working well.
Since it uses abstract syntax trees to parse the code and await inputs, there might be some rare shortcomings where the function is assigned to a different variable and called from there.
For example the following code runs without any problems:
Tabs can be now closed. Closing a tab deletes the file from the filesystem. Default files cannot be closed.
Added full screen
Added dark mode
Added copy functionality. Copying an already copied .py file replaces the previously copied code block. This feature does not apply to files with other file extensions.
Added PythonEditor component. I have tested it with all of the lab assignments of the first year Python course from a.y. 2020/2021, and everything seems to be working well.
Since it uses abstract syntax trees to parse the code and await inputs, there might be some rare shortcomings where the function is assigned to a different variable and called from there.
For example the following code runs without any problems:
However the following doesn't run: