eegprep.EEGPrepConsoleWorkspace#

class eegprep.EEGPrepConsoleWorkspace(session, *, window=None, refresh=None, command_echo=None, exports=None, extension_runtime=None)#

Bases: object

Synchronize 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)

__init__(session, *, window=None, refresh=None, command_echo=None, exports=None, extension_runtime=None)#
Parameters:
Return type:

None

Methods

__init__(session, *[, window, refresh, ...])

accept_pop_result(result, args[, kwargs])

Store a pop_* result in the current session when appropriate.

after_execute(source, *[, success])

Push console-side workspace edits back into the session.

close()

Detach this workspace from session notifications.

execute_history_command(command)

Execute an EEGLAB history command through the console namespace.

pop_wrapper(name)

Return the console-aware wrapper for a public pop_* function.

pull_from_session()

Mirror session state into the console namespace.

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.

Parameters:
Return type:

None

accept_pop_result(result, args, kwargs=None)#

Store a pop_* result in the current session when appropriate.

Parameters:
Return type:

Any

pop_wrapper(name)#

Return the console-aware wrapper for a public pop_* function.

Parameters:

name (str)

Return type:

ConsolePopFunction

execute_history_command(command)#

Execute an EEGLAB history command through the console namespace.

Parameters:

command (str)

Return type:

None