EEGPrepConsoleWorkspace#
- class EEGPrepConsoleWorkspace(session, *, window=None, refresh=None, command_echo=None, exports=None, extension_runtime=None)#
Bases:
objectSynchronize an IPython namespace with an
EEGPrepSession.- Parameters:
session (EEGPrepSession)
window (Any | None)
refresh (Callable[[], None] | None)
command_echo (Callable[[str], Any] | None)
exports (Mapping[str, Any] | None)
extension_runtime (ExtensionRuntime | None)
- close()#
Detach this workspace from session notifications.
- Return type:
None
- pull_from_session()#
Mirror session state into the console namespace.
- Return type:
None
- after_execute(source, *, success=True)#
Push console-side workspace edits back into the session.
- accept_pop_result(result, args, kwargs=None)#
Store a
pop_*result in the current session when appropriate.
- pop_wrapper(name)#
Return the console-aware wrapper for a public
pop_*function.- Parameters:
name (str)
- Return type:
ConsolePopFunction
- execute_history_command(command)#
Execute one command from this session’s own history.
This is the console equivalent of
evalin('base', ALLCOM{n}).commandmust already be an entry in the session history; other strings are refused. The call runs that entry and synchronizes workspace state without appendingcommand.eegh(n)records the stack entry once after this returns.- Parameters:
command (str)
- Return type:
None