Stop - Maple Help

Python

 Stop
 stop a Python session

 Calling Sequence Stop()

Description

 • 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](..).

Examples

 > $\mathrm{with}\left(\mathrm{Python}\right):$
 > $\mathrm{EvalString}\left("a = 42"\right)$
 ${42}$ (1)
 > $\mathrm{EvalString}\left("a"\right)$
 ${42}$ (2)
 > $\mathrm{Stop}\left(\right)$
 ${\mathrm{true}}$ (3)
 > $\mathrm{EvalString}\left("a"\right)$

Compatibility

 • The Python[Stop] command was introduced in Maple 2018.