ShellHooks#
- class ansys.mechanical.core.embedding.ipython_shell.ShellHooks#
IPython shell lifetime hooks.
Overview#
Function to call between IPython block executions. |
|
Function to call at the start of the block thread. |
|
Function to call when the shell is exited. |
Import detail#
from ansys.mechanical.core.embedding.ipython_shell import ShellHooks
Property detail#
- property ShellHooks.idle_hook: callable#
Function to call between IPython block executions.
- property ShellHooks.start_hook: callable#
Function to call at the start of the block thread.
- property ShellHooks.end_hook: callable#
Function to call when the shell is exited.
Method detail#
- ShellHooks.start()#
Signal handler when the shell starts.
- ShellHooks.idle()#
Signal handler when the shell is idle.
- ShellHooks.end()#
Signal handler when the shell ends.