ShellHooks#

class ansys.mechanical.core.embedding.ipython_shell.ShellHooks#

IPython shell lifetime hooks.

Overview#

start

Signal handler when the shell starts.

idle

Signal handler when the shell is idle.

end

Signal handler when the shell ends.

idle_hook

Function to call between IPython block executions.

start_hook

Function to call at the start of the block thread.

end_hook

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.