Python - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Connectivity : Python : Python/Stop

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

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