UI improved.
Python tutorial added.
More examples added.
A general educational tool with Python console and script feature.
======================================================
Features
--------------
* Offline Python 3.8 console that does NOT need internet connection.
* Apart from standard Python libraries, some useful and educational libraries such as numpy, sympy, requests, pillow, peewee are pre-installed.
* Custom script can be loaded and run easily. There are also some examples for quick start. Just copy and paste one of them to try it out.
Script General Guide
---------------------------------
* This app is not designed as script editor although script can be edited in the script field.
The best way is to use your favourite script editor and then copy and paste the script.
* Always use spaces for indentation to avoid weird errors.
* Most of the packages in standard Python library are available to import.
* Do not run console code and script code at the same time. They share the same stdout.
* If while loop is needed, always use `app.running_script` as condition in order to stop the script properly.
* Use `app.version` to get the app version string.
* Use `app.clear_output()` to clear the script output field.
* Use `app.log_file(text)` to save a log file in storage.
The log file is located here [Storage Directory]/{_log_folder_name}/log_[UTC Timestamp].txt.
text (str): Text Content
return (str): Full File Path
Here is one script example from this app:
####################
# Sympy example.
from sympy import symbols, solve
x, y = symbols('x, y')
solution = solve(
[
x + y - 10,
x - y - 2,
],
[x, y],
)
print(solution)
# Output: {x: 6, y: 4}
####################