You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
eegprep-lean: add a help entry point and list lazy names in dir() #428
A reader in a browser notebook (the NEMAR playground installs eegprep-lean by default) has no quick way to see what the package offers.
read_window, plot_window, to_png and the other names supplied by an extra are loaded lazily through __getattr__, and the package defines no __dir__.
They do not appear in dir(eegprep_lean) or in tab completion.
There is no overview of what each extra (zarr, plot, preprocess) provides, or of what is not implemented yet.
Every public function and class already has a docstring, so help(eegprep_lean.read_window) works once a reader knows the name.
Proposal
Define __dir__ so it includes the lazily loaded names.
Add eegprep_lean.help() that prints, in a few lines: each public function, one line on what it does, the extra that supplies it, and a minimal example.
Checked against develop: the latest change to packages/eegprep-lean is 50c5087 (eegprep-lean 0.1.0.dev3).
The NEMAR starter notebook would point readers to this help instead of listing functions itself.
Activity