Skip to content

Refactor - cleanup of old stuff and embarasing typos#155

Merged
stared merged 1 commit intomainfrom
code-quality-polish
May 5, 2026
Merged

Refactor - cleanup of old stuff and embarasing typos#155
stared merged 1 commit intomainfrom
code-quality-polish

Conversation

@stared
Copy link
Copy Markdown
Owner

@stared stared commented May 4, 2026

Treat 0.6.x as a clean modern reset; older code can pin earlier versions.

Removed

  • legacy meta-path shim for livelossplot.{keras,tf_keras,poutyne,pytorch_ignite} imports (deprecated since 0.5.0)
  • PlotLosses.draw() (deprecated since 0.5.0)
  • dead LossSubplot, _predict_pytorch, _not_inline_warning

Renamed

  • ExtremaPrinter(massage_template=)message_template
  • Plot2d(valiation_data=)validation_data

Internals

  • MainLogger rewritten — drop OrderedDict and the property/setter dance
  • BaseOutput collapsed set_output_mode/_set_output_mode to one hook; exposed shared OutputMode = Literal['notebook', 'script']
  • tensorboard outputs use pathlib.Path and timezone-aware timestamps
  • fixed mutable default args in PlotLosses and MatplotlibPlot
  • MatplotlibPlot.extra_plots callable signature corrected
  • type hints modernized to PEP 585/604; LogItem to class-based NamedTuple

Packaging

  • ipython>=8.0 declared as runtime dep (was a latent missing dep)
  • matplotlib>=3.6, bokeh>=3.0 lower bounds
  • ruff ruleset tightened: E F W I UP B SIM RET

Treat 0.6.x as a clean modern reset; older code can pin earlier versions.

Removed
- legacy meta-path shim for `livelossplot.{keras,tf_keras,poutyne,pytorch_ignite}`
  imports (deprecated since 0.5.0)
- `PlotLosses.draw()` (deprecated since 0.5.0)
- dead `LossSubplot`, `_predict_pytorch`, `_not_inline_warning`

Renamed
- `ExtremaPrinter(massage_template=)` → `message_template`
- `Plot2d(valiation_data=)` → `validation_data`

Internals
- `MainLogger` rewritten — drop `OrderedDict` and the property/setter dance
- `BaseOutput` collapsed `set_output_mode`/`_set_output_mode` to one hook;
  exposed shared `OutputMode = Literal['notebook', 'script']`
- tensorboard outputs use `pathlib.Path` and timezone-aware timestamps
- fixed mutable default args in `PlotLosses` and `MatplotlibPlot`
- `MatplotlibPlot.extra_plots` callable signature corrected
- type hints modernized to PEP 585/604; `LogItem` to class-based `NamedTuple`

Packaging
- `ipython>=8.0` declared as runtime dep (was a latent missing dep)
- `matplotlib>=3.6`, `bokeh>=3.0` lower bounds
- ruff ruleset tightened: `E F W I UP B SIM RET`

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@stared stared changed the title [WIP] Refactor Refactor - cleanup of old stuff and embarasing typos May 5, 2026
@stared stared merged commit f2bd316 into main May 5, 2026
6 checks passed
@stared stared deleted the code-quality-polish branch May 5, 2026 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant