Package com.illumon.ipykernel
Interface EventManagerCallbacks
public interface EventManagerCallbacks
This is a Java wrapper interface for IPython.core.events.EventManager
Python will call these trigger these events as appropriate during the IPython lifecycle
-
Method Summary
Modifier and Type Method Description void
post_execute()
Fires after code is executed in response to user/frontend action.void
post_run_cell(org.jpy.PyObject result)
Fires after user-entered code runs.void
pre_execute()
Fires before code is executed in response to user/frontend action.void
pre_run_cell(org.jpy.PyObject info)
Fires before user-entered code runs.void
shell_initialized(org.jpy.PyObject ip)
Fires after initialisation of InteractiveShell.
-
Method Details
-
pre_execute
void pre_execute()Fires before code is executed in response to user/frontend action.This includes comm and widget messages and silent execution, as well as user code cells.
-
pre_run_cell
void pre_run_cell(org.jpy.PyObject info)Fires before user-entered code runs.- Parameters:
info
- An IPython.core.interactiveshell.ExecutionInfo object containing information used for the code execution.
-
post_execute
void post_execute()Fires after code is executed in response to user/frontend action.This includes comm and widget messages and silent execution, as well as user code cells.
-
post_run_cell
void post_run_cell(org.jpy.PyObject result)Fires after user-entered code runs.- Parameters:
result
- An IPython.core.interactiveshell.ExecutionResult which will be returned as the execution result.
-
shell_initialized
void shell_initialized(org.jpy.PyObject ip)Fires after initialisation of InteractiveShell.This is before extensions and startup scripts are loaded, so it can only be set by subclassing.
- Parameters:
ip
- An IPython.core.interactiveshell.InteractiveShell which will be the newly initialized shell.
-