manually start a Python session
(optional) path to Python home
(optional) paths to Python libraries
(optional) communication port
The Start command initializes the environment and starts a "mpython" interface process. Normally this command does not need to be explicitly called as initialization will be handled automatically when calling commands in the Python package.
By default the Python install in $MAPLE/Python.$SYS is used. You can direct Maple to use a different installed version of Python by providing home and path options to this command. For this override to work the Start command with appropriate options must be executed before evaluating any other command in the Python package.
An alternate override is to set the system environment variables PYTHONHOME and PYTHONPATH.
When overriding the default Python you must point to an ABI compatible version of Python. Maple currently only supports Python version 3.7.6.
The home option should be a string indicating the path to the directory where Python is installed.
The path option should be a string indicating the path to the directories where Python libraries are installed. The directories must be separated by the standard system path separator, ";" on Windows, and ":" on MacOS and Linux.
The port option is an advanced option used by developers to start "mpython -noclient" in a separate shell Window and direct communication to the already running process. This may be useful for debugging initialization problems.
This function is part of the Python package, so it can be used in the short form Start(..) only after executing the command with(Python). However, it can always be accessed through the long form of the command by using Python[Start](..).
The Python[Start] command was introduced in Maple 2018.
For more information on Maple 2018 changes, see Updates in Maple 2018.
Download Help Document
What kind of issue would you like to report? (Optional)