Stop - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Python

  

Stop

  

stop a Python session

 

Calling Sequence

Description

Examples

Compatibility

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

withPython:

EvalStringa = 42

42

(1)

EvalStringa

42

(2)

Stop

true

(3)

EvalStringa

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"]

Compatibility

• 

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

• 

For more information on Maple 2018 changes, see Updates in Maple 2018.

See Also

Python

Python:-EvalString

Python:-Start