Python
Stop
stop a Python session
Calling Sequence
Description
Examples
Compatibility
Stop()
The Stop command shuts down the external Python process, thereby clearing the state. Any subsequent commands using the Python package will start a new Python process.
This command is automatically invoked by calling restart.
This function is part of the Python package, so it can be used in the short form EvalMember(..) only after executing the command with(Python). However, it can always be accessed through the long form of the command by using Python[EvalMember](..).
with⁡Python:
EvalString⁡a = 42
42
EvalString⁡a
Stop⁡
true
Error, (in Python:-EvalString) NameError: name 'a' is not defined ['Traceback (most recent call last):\n', ' File "<string>", line 1, in <module>\n', "NameError: name 'a' is not defined\n"]
The Python[Stop] command was introduced in Maple 2018.
For more information on Maple 2018 changes, see Updates in Maple 2018.
See Also
Python:-EvalString
Python:-Start
Download Help Document